OpenSSH: build and effective authentication policy
Separate the advertised version from the running build, vendor fixes and the policy that governs a login.
OpenSSH is a software implementation of SSH. Its banner can guide documentary research but does not uniquely identify the installed package, vendor backports, the binary currently running or its effective authentication policy. Treat each of these as a separate question.
Distinguish the version signals
- Advertised string: what a service claims over the network. Preserve it verbatim; it may omit a portable-release suffix or downstream revision.
- Installed package and vendor advisory: which source and patches the operator or vendor identifies. A backported fix can retain an older upstream version string.
- Running daemon: whether the service has actually been restarted onto that build. An installed fix is not automatically a running fix.
Consult OpenSSH release notes and the relevant vendor’s package advisory for a version-bound claim. Never assume an upstream ordering alone settles a downstream package.
Distinguish configuration from policy
sshd_config(5) documents PasswordAuthentication, UsePAM,
AuthenticationMethods, PermitRootLogin, and conditional Match blocks.
An isolated line from a file is not necessarily the effective policy for a
given account and connection: include files, conditional blocks and
additional authentication factors matter. config
When operator-approved configuration is available, record what it establishes and for which context. A version banner does not reveal musl versus another C library, whether PAM is in the effective path, or account state. Do not infer any of those from the fact that port 22 is open.
Inspect effective settings locally
On the server, use the daemon’s configuration-test mode with the intended connection context:
sudo /usr/sbin/sshd -T -f /etc/ssh/sshd_config \
-C user=example-user,addr=192.0.2.10,host=client.example.org,laddr=192.0.2.20,lport=22Replace the sample context with the one being assessed. -T validates and
prints configuration, then exits; it does not start a listener or attempt a
login. -C applies matching conditional rules. Inspect passwordauthentication,
usepam (portable builds), authenticationmethods and permitrootlogin.
Use the actual binary, configuration path and command-line overrides from the service definition. This reads the configuration on disk, not the live daemon’s memory; account eligibility and external PAM policy remain separate.
Follow a vulnerability note by conditions
The SSHole applicability note is one example that depends on the running build and fix, musl, a non-PAM password path, effective authentication policy, a particular account-state marker and a usable salt. Its affected-release statement is not “every OpenSSH 10.6 server”. A banner compatible with an affected version is only an unresolved lead while those other conditions remain unknown.
An SSH authentication attempt, even one expected to fail, consumes an authentication budget. This guide grants no such budget. If authorised material cannot distinguish the conditions, record undetermined instead of attempting a login or marking the server safe.
Sources and limits
openssh-release-notes — OpenSSH release notes, read 2026-11-22. They describe upstream releases, not a target’s package provenance.
openssh-sshd-config-manual — OpenSSH sshd_config(5), read
2026-11-22. Directives are documentation, not observed effective settings.
openssh-sshd-manual — OpenSSH sshd(8), read 2026-11-22. The
running binary and vendor fix level are assessment findings, not wiki content.
The -T, -f and -C options were reviewed again on 2026-11-24 for version 2.
Provenance and confidence
- Version
- 2
- Sources reviewed
- 2026-11-22
- Confidence
- medium — V2 on 2026-11-24 adds a context-specific sshd -T example checked against sshd(8). Existing release-policy discussion retained; no daemon or authentication test.
Also searched as: openssh, openssh sshd, OpenSSH 10.6, version openssh, configuration sshd, politique ssh