Commit 7a20ce07 authored by Scott Moser's avatar Scott Moser Committed by Colin Watson

Mention ssh-keygen in ssh fingerprint changed warning

Last-Update: 2013-09-14

Patch-Name: mention-ssh-keygen-on-keychange.patch
parent ec5991d7
......@@ -981,9 +981,12 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
error("%s. This could either mean that", key_msg);
error("DNS SPOOFING is happening or the IP address for the host");
error("and its host key have changed at the same time.");
if (ip_status != HOST_NEW)
if (ip_status != HOST_NEW) {
error("Offending key for IP in %s:%lu",
ip_found->file, ip_found->line);
error(" remove with: ssh-keygen -f \"%s\" -R %s",
ip_found->file, ip);
/* The host key has changed. */
......@@ -991,6 +994,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
error("Offending %s key in %s:%lu", key_type(host_found->key),
host_found->file, host_found->line);
error(" remove with: ssh-keygen -f \"%s\" -R %s",
host_found->file, host);
* If strict host key checking is in use, the user will have
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment