mirror of
https://github.com/upa/mscp.git
synced 2026-02-15 09:44:43 +08:00
drop -H disable host key checking option
It can be done by ssh_config instead.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user