17 lines
651 B
Diff
17 lines
651 B
Diff
|
Index: openssh-5.5p1/sshconnect.c
|
||
|
===================================================================
|
||
|
--- openssh-5.5p1.orig/sshconnect.c
|
||
|
+++ openssh-5.5p1/sshconnect.c
|
||
|
@@ -916,6 +916,11 @@ check_host_key(char *hostname, struct so
|
||
|
error("Add correct host key in %.100s to get rid of this message.",
|
||
|
user_hostfile);
|
||
|
error("Offending key in %s:%d", host_file, host_line);
|
||
|
+ error("You can use following command to remove all keys for this IP:");
|
||
|
+ if (ip_file)
|
||
|
+ error("ssh-keygen -R %s -f %s", hostname, ip_file);
|
||
|
+ else
|
||
|
+ error("ssh-keygen -R %s", hostname);
|
||
|
|
||
|
/*
|
||
|
* If strict host key checking is in use, the user will have
|