[Bug 1993] ssh tries to add keys to ~/.ssh/known_hosts though StrictHostKeyChecking yes is set

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed May 15 09:24:11 EST 2013


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

--- Comment #3 from Darren Tucker <dtucker at zip.com.au> ---
I can't reproduce the name truncation bug on fedora with either 5.9p1
or 6.2p1:

$ ls -l /var/lib/nagios/.ssh/known_hosts
ls: cannot access /var/lib/nagios/.ssh/known_hosts: No such file or
directory

$ ssh -o stricthostkeychecking=no 192.168.1.1 
Warning: Permanently added '192.168.1.1' (RSA) to the list of known
hosts.
^C

$ cat /var/lib/nagios/.ssh/known_hosts 
192.168.1.1 ssh-rsa [....]

The fact that the string is 31 bytes long is suspicious, and it makes
me thing that it's picking up a PATH_MAX or MAXPATHLEN of 32 bytes from
somewhere, but it's not from openssh itself (if it doesn't know any
better it uses 64 bytes).

What platform is this and what is PATH_MAX and/or MAXPATHLEN?  Do you
have UserKnownHostsFile set to a non-default value?

-- 
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