known_hosts is not populated correctly for non-standard ports
"monkeysphere update-known_hosts" does not work correctly when identifying hosts running ssh on non-standard ports.
It appears that monkeysphere inserts lines in known_hosts like @foo.example.net:1234@
The version of ssh in etch and earlier (4.3p1) apparently does not indicate port numbers in known_hosts. (this would indicate that the line should just use @foo.example.net@
the version in lenny and later (5.1p1) appears to indicate known_hosts with "square brackets around the host part":http://net-ssh.rubyforge.org/ssh/v2/api/classes/Net/SSH/KnownHosts.html#M000310 , like @[foo.example.net]:1234@
I don't know when specifically openssh switched its formats. That would be worth finding out.
I suspect that the right thing is to first make the monkeysphere work with the modern approach. Then find out when the transition was, and conditionally use the former approach after checking the version of the local ssh installation.
(from redmine: created on 2009-03-23, closed on 2009-03-23)