summaryrefslogtreecommitdiffhomepage
path: root/cli-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-14 22:49:10 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-14 22:49:10 +0800
commit4404126501ba18184a8e04f815c21e7a9184414a (patch)
tree1e4837b191f9c31195bf12309f6cd3bdf0d70361 /cli-kex.c
parent156e0187bf550f42203a313c60fbb7ef82947eee (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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli-kex.c b/cli-kex.c
index 0d5a9d2..c47faae 100644
--- a/cli-kex.c
+++ b/cli-kex.c
@@ -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);