summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sshconnect.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 8adc94307..0c9fc6c36 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1078,9 +1078,12 @@ 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: ssh-keygen -f \"%s\" -R %s",
1085 ip_found->file, ip);
1086 }
1084 } 1087 }
1085 /* The host key has changed. */ 1088 /* The host key has changed. */
1086 warn_changed_key(host_key); 1089 warn_changed_key(host_key);
@@ -1088,6 +1091,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1088 user_hostfiles[0]); 1091 user_hostfiles[0]);
1089 error("Offending %s key in %s:%lu", key_type(host_found->key), 1092 error("Offending %s key in %s:%lu", key_type(host_found->key),
1090 host_found->file, host_found->line); 1093 host_found->file, host_found->line);
1094 error(" remove with: ssh-keygen -f \"%s\" -R %s",
1095 host_found->file, host);
1091 1096
1092 /* 1097 /*
1093 * If strict host key checking is in use, the user will have 1098 * If strict host key checking is in use, the user will have