drop -H disable host key checking option

It can be done by ssh_config instead.
This commit is contained in:
Ryo Nakamura
2024-04-11 20:29:31 +09:00
parent 00fa2c7277
commit 59b90d80bd
7 changed files with 47 additions and 58 deletions

View File

@@ -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;
}