summaryrefslogtreecommitdiff
path: root/src/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssh.c')
-rw-r--r--src/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssh.c b/src/ssh.c
index c5c53be..9ba7316 100644
--- a/src/ssh.c
+++ b/src/ssh.c
@@ -106,7 +106,7 @@ static ssh_session ssh_make_ssh_session(char *sshdst, struct ssh_opts *opts)
goto disconnect_out;
}
- if (ssh_verify_known_hosts(ssh) != 0) {
+ if (!opts->no_hostkey_check && ssh_verify_known_hosts(ssh) != 0) {
goto disconnect_out;
}