diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-02-09 16:10:03 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-08-24 17:49:07 +0100 |
commit | 0e0121b6dc0ffc2ec6a171328fea530378df2b3b (patch) | |
tree | 331bd03c6d6c7ace3a28f9612b154a5f6edc8021 | |
parent | 298716354cedb77d8e3672a2157d63e15a778d64 (diff) |
Mention ssh-keygen in ssh fingerprint changed warning
Author: Chris Lamb <lamby@debian.org>
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1843
Bug-Ubuntu: https://bugs.launchpad.net/bugs/686607
Last-Update: 2017-08-22
Patch-Name: mention-ssh-keygen-on-keychange.patch
-rw-r--r-- | sshconnect.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c index a2efe6d15..ab5966066 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -1112,9 +1112,13 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, | |||
1112 | error("%s. This could either mean that", key_msg); | 1112 | error("%s. This could either mean that", key_msg); |
1113 | error("DNS SPOOFING is happening or the IP address for the host"); | 1113 | error("DNS SPOOFING is happening or the IP address for the host"); |
1114 | error("and its host key have changed at the same time."); | 1114 | error("and its host key have changed at the same time."); |
1115 | if (ip_status != HOST_NEW) | 1115 | if (ip_status != HOST_NEW) { |
1116 | error("Offending key for IP in %s:%lu", | 1116 | error("Offending key for IP in %s:%lu", |
1117 | ip_found->file, ip_found->line); | 1117 | ip_found->file, ip_found->line); |
1118 | error(" remove with:"); | ||
1119 | error(" ssh-keygen -f \"%s\" -R \"%s\"", | ||
1120 | ip_found->file, ip); | ||
1121 | } | ||
1118 | } | 1122 | } |
1119 | /* The host key has changed. */ | 1123 | /* The host key has changed. */ |
1120 | warn_changed_key(host_key); | 1124 | warn_changed_key(host_key); |
@@ -1123,6 +1127,9 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, | |||
1123 | error("Offending %s key in %s:%lu", | 1127 | error("Offending %s key in %s:%lu", |
1124 | sshkey_type(host_found->key), | 1128 | sshkey_type(host_found->key), |
1125 | host_found->file, host_found->line); | 1129 | host_found->file, host_found->line); |
1130 | error(" remove with:"); | ||
1131 | error(" ssh-keygen -f \"%s\" -R \"%s\"", | ||
1132 | host_found->file, host); | ||
1126 | 1133 | ||
1127 | /* | 1134 | /* |
1128 | * If strict host key checking is in use, the user will have | 1135 | * If strict host key checking is in use, the user will have |