[Bug 4043] New: Documentation for sshd_config token %C has client and server params flipped

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Oct 28 01:42:52 AEDT 2026


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

            Bug ID: 4043
           Summary: Documentation for sshd_config token %C has client and
                    server params flipped
           Product: Portable OpenSSH
           Version: 10.6p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: brahim.raddahi at acen.eu

in ssh/auth2-pubkey.c in user_key_allowed, we see this:

       xasprintf(&conn_id, "%s %d %s %d",
            ssh_local_ipaddr(ssh), ssh_local_port(ssh),
            remote_ip, ssh_remote_port(ssh));

but in ssh/sshd_config.5, it says:

Identifies the connection endpoints, containing
four space-separated values: client address, client port number,
server address, and server port number.



so the man page (https://man.openbsd.org/sshd_config#TOKENS) has the
client and server params flipped, it should be:

server address, server port number, client address, client port number

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


More information about the openssh-bugs mailing list