summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2012-11-26 16:33:35 +0000
committerColin Watson <cjwatson@debian.org>2012-11-26 16:33:35 +0000
commit1ea794a34403a618e59bf5993912503fe1f64d11 (patch)
tree5b77db7c784e2b25ce3170a9f50eb148f7e1aacd /sshconnect.c
parent2c3850b2193fa51b4a8d0b55f38b951917022b5c (diff)
Add mention of ssh-keygen in ssh connect warning (Scott Moser).
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c
index aed4c0bc7..2cde2f0a3 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -956,9 +956,12 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
956 error("%s. This could either mean that", key_msg); 956 error("%s. This could either mean that", key_msg);
957 error("DNS SPOOFING is happening or the IP address for the host"); 957 error("DNS SPOOFING is happening or the IP address for the host");
958 error("and its host key have changed at the same time."); 958 error("and its host key have changed at the same time.");
959 if (ip_status != HOST_NEW) 959 if (ip_status != HOST_NEW) {
960 error("Offending key for IP in %s:%lu", 960 error("Offending key for IP in %s:%lu",
961 ip_found->file, ip_found->line); 961 ip_found->file, ip_found->line);
962 error(" remove with: ssh-keygen -f \"%s\" -R %s",
963 ip_found->file, ip);
964 }
962 } 965 }
963 /* The host key has changed. */ 966 /* The host key has changed. */
964 warn_changed_key(host_key); 967 warn_changed_key(host_key);
@@ -966,6 +969,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
966 user_hostfiles[0]); 969 user_hostfiles[0]);
967 error("Offending %s key in %s:%lu", key_type(host_found->key), 970 error("Offending %s key in %s:%lu", key_type(host_found->key),
968 host_found->file, host_found->line); 971 host_found->file, host_found->line);
972 error(" remove with: ssh-keygen -f \"%s\" -R %s",
973 host_found->file, host);
969 974
970 /* 975 /*
971 * If strict host key checking is in use, the user will have 976 * If strict host key checking is in use, the user will have