bugzilla-daemon at bugzilla.mindrot.org
2019-Mar-16 11:39 UTC
[Bug 2983] New: Add --fix-up-the-mess to fix up Offending key warnings for the user in one quick step!
https://bugzilla.mindrot.org/show_bug.cgi?id=2983
Bug ID: 2983
Summary: Add --fix-up-the-mess to fix up Offending key warnings
for the user in one quick step!
Product: Portable OpenSSH
Version: 7.9p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: jidanni at jidanni.org
We are all familiar with the old routine,
$ ssh ...
Warning: the ECDSA host key for 'ssh.example.org' differs from the key
for the IP address '164.190.144.253'
Offending key for IP in /home/jidanni/.ssh/known_hosts:20
Matching host key in /home/jidanni/.ssh/known_hosts:30
$ ed /home/jidanni/.ssh/known_hosts
11098
20d
w
10656
q
$ ssh ...
Warning: Permanently added the ECDSA host key for IP address
'64.90.44.253' to the list of known hosts.
Well I have a new idea!
At the end of the initial warning just add
"... or if you are really sure, just use --fix-up-the-mess to fix up
the mess"
and then all the user would need to do is one
$ ssh --fix-up-the-mess ...
and voila, the mess is all fixed up! Even no one-time "Permanently
added..." message!
(Of course please choose a better name than --fix-up-the-mess.) Thanks!
https://github.com/libssh2/libssh2/issues/300 = former bug address.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2020-Jan-25 12:42 UTC
[Bug 2983] Add --fix-up-the-mess to fix up Offending key warnings for the user in one quick step!
https://bugzilla.mindrot.org/show_bug.cgi?id=2983
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Fortunately, OpenSSH has long supported almost what you want in the
form of the "ssh-keygen -R" option and the (as of the forthcoming
openssh-8.2 release) on-by-default UpdateKnownHosts option.
We don't plan on implementing any further offline modes as they cannot
operate reliably.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 04:56 UTC
[Bug 2983] Add --fix-up-the-mess to fix up Offending key warnings for the user in one quick step!
https://bugzilla.mindrot.org/show_bug.cgi?id=2983
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
closing resolved bugs as of 8.6p1 release
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.