diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 22:49:10 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 22:49:10 +0800 |
commit | 4404126501ba18184a8e04f815c21e7a9184414a (patch) | |
tree | 1e4837b191f9c31195bf12309f6cd3bdf0d70361 /cli-kex.c | |
parent | 156e0187bf550f42203a313c60fbb7ef82947eee (diff) |
-y -y to disable hostkey checking
fix missing trailing space when passing arguments for multihop mode
From Hans Harder
Diffstat (limited to 'cli-kex.c')
-rw-r--r-- | cli-kex.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -217,6 +217,11 @@ static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen) { buffer * line = NULL; int ret; + if (cli_opts.no_hostkey_check) { + fprintf(stderr, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost); + return; + } + hostsfile = open_known_hosts_file(&readonly); if (!hostsfile) { ask_to_confirm(keyblob, keybloblen); |