summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
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 ef4d9e04f..4ff5c73bc 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1062,9 +1062,12 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1062 error("%s. This could either mean that", key_msg); 1062 error("%s. This could either mean that", key_msg);
1063 error("DNS SPOOFING is happening or the IP address for the host"); 1063 error("DNS SPOOFING is happening or the IP address for the host");
1064 error("and its host key have changed at the same time."); 1064 error("and its host key have changed at the same time.");
1065 if (ip_status != HOST_NEW) 1065 if (ip_status != HOST_NEW) {
1066 error("Offending key for IP in %s:%lu", 1066 error("Offending key for IP in %s:%lu",
1067 ip_found->file, ip_found->line); 1067 ip_found->file, ip_found->line);
1068 error(" remove with: ssh-keygen -f \"%s\" -R %s",
1069 ip_found->file, ip);
1070 }
1068 } 1071 }
1069 /* The host key has changed. */ 1072 /* The host key has changed. */
1070 warn_changed_key(host_key); 1073 warn_changed_key(host_key);
@@ -1072,6 +1075,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1072 user_hostfiles[0]); 1075 user_hostfiles[0]);
1073 error("Offending %s key in %s:%lu", key_type(host_found->key), 1076 error("Offending %s key in %s:%lu", key_type(host_found->key),
1074 host_found->file, host_found->line); 1077 host_found->file, host_found->line);
1078 error(" remove with: ssh-keygen -f \"%s\" -R %s",
1079 host_found->file, host);
1075 1080
1076 /* 1081 /*
1077 * If strict host key checking is in use, the user will have 1082 * If strict host key checking is in use, the user will have