Port numbers in known_hosts
Posted Feb 19, 2007 8:46 UTC (Mon) by
dtucker (subscriber, #6575)
In reply to:
Host authenticity check by juriise
Parent article:
Set up remote access in UNIX through OpenSSH (developerWorks)
Starting in 4.4, OpenSSH will also record the port number against the host key when you use a non-standard port so you don't actually need the hostkeyalias. When this happens you will see entries like this in your known_hosts file:
[1.2.3.4]:222 ssh-rsa AA...
It doesn't happen if you set HostKeyAlias and it transparently falls back to the non-port-specific one if need be, so most folks probably haven't noticed.
(
Log in to post comments)