fix(libssh): multiple command on the same connect with key auth (#3302)

This commit is contained in:
qgarnier 2021-12-08 09:17:31 +01:00 committed by GitHub
parent 37890b6074
commit 412bead426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ sub connect {
$self->{output}->add_option_msg(short_msg => sprintf("auth issue: %s", defined($msg_error) && $msg_error ne '' ? $msg_error : 'pubkey issue'));
$self->{output}->option_exit();
}
$self->{connected} = 1;
}
sub execute {