[Bug 1476] .ssh/known_hosts does not save port number

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jun 13 03:16:03 EST 2008


https://bugzilla.mindrot.org/show_bug.cgi?id=1476


Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au




--- Comment #1 from Darren Tucker <dtucker at zip.com.au>  2008-06-13 03:16:00 ---
Thats' odd, because that's been there for a while.  What exact version
are you using (ie what does ssh -V say?)

Using a server with a different key on port 2222 on "myserver" with a
5.0p1 client, I get:

$ ssh -o userknownhostsfile=/tmp/known myserver
The authenticity of host '[myserver]:2222 ([192.168.32.1]:2222)' can't
be established.
[...]

and /tmp/known contains:

[myserver]:2222,[192.168.32.1]:2222 ssh-rsa AAAAB3Nz[...]

Be aware that using the default port does not add a port number, and if
a matching host key is found without a port then it is used even if
you're connecting on a nonstandard port (this is for backward
compatibility).

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- 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.


More information about the openssh-bugs mailing list