bugzilla-daemon at natsu.mindrot.org
2013-Nov-11 10:52 UTC
[Bug 2169] New: command to remove outdated hostkey from known_hosts file wrong
https://bugzilla.mindrot.org/show_bug.cgi?id=2169
Bug ID: 2169
Summary: command to remove outdated hostkey from known_hosts
file wrong
Product: Portable OpenSSH
Version: 6.2p1
Hardware: Other
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: bjoern at j3e.de
when a host with a non-default port is in the known_hosts file then the
suggested command to remove it does not work:
in known_hosts:
[192.168.42.129]:2222 ssh-rsa ....
connecting with an outdated hostkey gives:
Offending ECDSA key in /home/user/.ssh/known_hosts:440
You can use following command to remove all keys for this IP:
ssh-keygen -R 192.168.42.129 -f /home/user/.ssh/known_hosts
That command does only work for this known_hosts entry. It only works
via:
keygen -R [192.168.42.129]:2222 -f /home/user/.ssh/known_hosts
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at natsu.mindrot.org
2013-Nov-11 14:47 UTC
[Bug 2169] command to remove outdated hostkey from known_hosts file wrong
https://bugzilla.mindrot.org/show_bug.cgi?id=2169 --- Comment #1 from Bj?rn Jacke <bjoern at j3e.de> --- "That command does only work for this known_hosts entry" should read: "That command does NOT work for this known_hosts entry" -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2013-Dec-19 00:09 UTC
[Bug 2169] command to remove outdated hostkey from known_hosts file wrong
https://bugzilla.mindrot.org/show_bug.cgi?id=2169
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |djm at mindrot.org
Resolution|--- |INVALID
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
That text has been added by a downstream distributor of OpenSSH,
probably your OS distribution. It isn't in the version that we 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.
bugzilla-daemon at mindrot.org
2015-Aug-11 13:04 UTC
[Bug 2169] command to remove outdated hostkey from known_hosts file wrong
https://bugzilla.mindrot.org/show_bug.cgi?id=2169
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1
--
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 bugzilla.mindrot.org
2016-Oct-21 14:45 UTC
[Bug 2169] command to remove outdated hostkey from known_hosts file wrong
https://bugzilla.mindrot.org/show_bug.cgi?id=2169
Adam Spiers <mindrot at adamspiers.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mindrot at adamspiers.org
--- Comment #4 from Adam Spiers <mindrot at adamspiers.org> ---
For future reference, this bug affects SUSE distributions, and I have
submitted a downstream bug here:
https://bugzilla.suse.com/show_bug.cgi?id=1006221
--
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.
Reasonably Related Threads
- [Bug 2631] New: Hostkey update and rotation - No IP entries added to known_hosts
- [Bug 1988] New: ControlPersist causes stderr to be left open until the master connection times out
- hostkey checking
- HostKey checking and DNS finger print verification
- [Bug 3221] New: hostkey preference ordering is broken in some situations