summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-02-09 16:10:03 +0000
committerColin Watson <cjwatson@debian.org>2015-11-29 17:26:17 +0000
commit20ba3686f33c1dbb34583b8731582fdc7181a831 (patch)
tree1ce1054731348c90d201eff706f9864d0d99ea81 /sshconnect.c
parent1b41ad6426301c5131aa93d0915f6c5e69cff645 (diff)
Mention ssh-keygen in ssh fingerprint changed warning
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1843 Bug-Ubuntu: https://bugs.launchpad.net/bugs/686607 Last-Update: 2015-09-08 Patch-Name: mention-ssh-keygen-on-keychange.patch
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 8adc94307..4aff104b8 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1078,9 +1078,13 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1078 error("%s. This could either mean that", key_msg); 1078 error("%s. This could either mean that", key_msg);
1079 error("DNS SPOOFING is happening or the IP address for the host"); 1079 error("DNS SPOOFING is happening or the IP address for the host");
1080 error("and its host key have changed at the same time."); 1080 error("and its host key have changed at the same time.");
1081 if (ip_status != HOST_NEW) 1081 if (ip_status != HOST_NEW) {
1082 error("Offending key for IP in %s:%lu", 1082 error("Offending key for IP in %s:%lu",
1083 ip_found->file, ip_found->line); 1083 ip_found->file, ip_found->line);
1084 error(" remove with:");
1085 error(" ssh-keygen -f \"%s\" -R %s",
1086 ip_found->file, ip);
1087 }
1084 } 1088 }
1085 /* The host key has changed. */ 1089 /* The host key has changed. */
1086 warn_changed_key(host_key); 1090 warn_changed_key(host_key);
@@ -1088,6 +1092,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1088 user_hostfiles[0]); 1092 user_hostfiles[0]);
1089 error("Offending %s key in %s:%lu", key_type(host_found->key), 1093 error("Offending %s key in %s:%lu", key_type(host_found->key),
1090 host_found->file, host_found->line); 1094 host_found->file, host_found->line);
1095 error(" remove with:");
1096 error(" ssh-keygen -f \"%s\" -R %s", host_found->file, host);
1091 1097
1092 /* 1098 /*
1093 * If strict host key checking is in use, the user will have 1099 * If strict host key checking is in use, the user will have