[Bug 2169] New: command to remove outdated hostkey from known_hosts file wrong
    bugzilla-daemon at natsu.mindrot.org 
    bugzilla-daemon at natsu.mindrot.org
       
    Mon Nov 11 21:52:58 EST 2013
    
    
  
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.
    
    
More information about the openssh-bugs
mailing list