diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-11-05 22:46:02 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-11-05 22:46:02 +0900 |
commit | 243bf1fa5710c0928e4a52ad4c5a0f0e73022554 (patch) | |
tree | 41f692ce8c03534e149841de6600dc84ec50e7ee /src/ssh.c | |
parent | 8cb5c81fcfc5a43224c1d2c0eed374d85667a0d8 (diff) |
add -H option to disable host key check
tests use this option.
Diffstat (limited to 'src/ssh.c')
-rw-r--r-- | src/ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |