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 f21200f..16e2b0c 100644
--- a/src/ssh.c
+++ b/src/ssh.c
@@ -199,7 +199,7 @@ static ssh_session ssh_init_session(const char *sshdst, struct mscp_ssh_opts *op
goto disconnect_out;
}
- if (!opts->no_hostkey_check && ssh_verify_known_hosts(ssh) != 0) {
+ if (ssh_verify_known_hosts(ssh) != 0) {
priv_set_errv("ssh_veriy_known_hosts failed");
goto disconnect_out;
}