Antonio Larrosa
45f6d17800
package existed for a brief period of time during SLE 15 SP6/ Leap 15.6 development but even if it was removed from the repositories before GM, some users might have it in their systems from having tried a beta/RC release (boo#1227350). quoting was present in the user-supplied ssh_config(5) directive (bsc#1218215, CVE-2023-51385). OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=270
21 lines
774 B
Diff
21 lines
774 B
Diff
# HG changeset patch
|
|
# Parent 0f731d0b541b8a919d24ac91098f560a49712822
|
|
Suggest command line for removal of offending keys from known_hosts file
|
|
|
|
Index: openssh-8.8p1/sshconnect.c
|
|
===================================================================
|
|
--- openssh-8.8p1.orig/sshconnect.c
|
|
+++ openssh-8.8p1/sshconnect.c
|
|
@@ -1270,6 +1270,11 @@ check_host_key(char *hostname, const str
|
|
error("Offending %s key in %s:%lu",
|
|
sshkey_type(host_found->key),
|
|
host_found->file, host_found->line);
|
|
+ error("You can use following command to remove the offending key:");
|
|
+ if (host_found->file)
|
|
+ error("ssh-keygen -R %s -f %s", host, host_found->file);
|
|
+ else
|
|
+ error("ssh-keygen -R %s", host);
|
|
|
|
/*
|
|
* If strict host key checking is in use, the user will have
|