[Bug 3608] ssh version is different with sshd version

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Aug 25 09:48:20 AEST 2023


Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---
                 CC|                            |dtucker at dtucker.net

--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
This is about the output of "sshd -V" not the version in the protocol

There's two version identifiers in version.h, the base OpenSSH version
and the -portable version:

#define SSH_VERSION     "OpenSSH_9.4"
#define SSH_PORTABLE    "p1"

Upstream (OpenBSD) only uses SSH_VERSION.

ssh.c uses SSH_RELEASE (the full version) and has for a long, long time

                case 'V':
                        fprintf(stderr, "%s, %s\n",
                            SSH_RELEASE, SSH_OPENSSL_VERSION);

When sshd -V was added in OpenBSD  it used SSH_VERSION (the base
version), and when it was synced into -portable this was brought over
without change

                case 'V':
                        fprintf(stderr, "%s, %s\n",
                            SSH_VERSION, SSH_OPENSSL_VERSION);

I contend sshd -V should match ssh -V behaviour.

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