[Bug 2692] New: Hash does not include the port

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Mar 9 04:55:49 AEDT 2017


            Bug ID: 2692
           Summary: Hash does not include the port
           Product: Portable OpenSSH
           Version: 7.4p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-keyscan
          Assignee: unassigned-bugs at mindrot.org
          Reporter: josh.powers at canonical.com

This was reported to Ubuntu and I wanted to follow up with the openssh
maintainers as to the expected behavior to verify if this is in fact a

When running an ssh-keyscan with the -H option on a custom port the
port is not included in the hash and is in plain text. For example:
$ ssh-keyscan -H -p 2222
[|1|HASHED_IP]:2222 ssh-rsa MY_RSA_KEY

If however I run ssh-keygen without the -H and then come back with
ssh-keygen it will hash the port:
$ ssh-keyscan -p 2222 > ~/.ssh/authorized_keys
[]:2222 ssh-rsa MY_RSA_KEY
$ ssh-keygen -H -f ~/.ssh/authorized_keys
$ cat ~/.ssh/authorized_keys

Should ssh-keyscan also be hashing the port?

You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list