diff cli-kex.c @ 772:7fc0aeada79c

-y -y to disable hostkey checking fix missing trailing space when passing arguments for multihop mode From Hans Harder
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 22:49:10 +0800
parents 005530560594
children a9f2a6ae4eb5
line wrap: on
line diff
--- a/cli-kex.c	Thu Mar 21 23:29:04 2013 +0800
+++ b/cli-kex.c	Sun Apr 14 22:49:10 2013 +0800
@@ -217,6 +217,11 @@
 	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);