Use it to know which OpenSSH component handles a task and where its configuration lives.
OpenSSH
OpenSSH is the standard SSH implementation on Linux: sshd (server), ssh (client), scp/sftp (file transfer), ssh-keygen, ssh-agent and ssh-copy-id.
1. ssh -V — client version.
2. Server package and service: systemctl status sshd (ssh on Debian).
3. Config files and drop-ins: ls /etc/ssh/sshd_config.d.
4. sshd -t — config valid.
5. Keys: ssh-keygen -l -f <key>.
client ssh + config → server sshd + config → keys managed with ssh-keygen/agent
For SSH → OpenSSH, continue with the first unproven Topic check: Record client ssh -V, server package/build information and distribution release. If that boundary is healthy, advance to the adjacent check: Inspect supported/effective algorithm sets only for the failing negotiation boundary. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
systemctl status sshdVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
distribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workload
Healthy evidence: the expected OpenSSH builds and capabilities are present, effective policies are compatible and the target SSH function negotiates and completes successfully.
Step 2 Verification and output interpretation Verify boundary
For tunneling/SFTP/SCP, verify the requested channel/subsystem after authentication rather than assuming login success shows every SSH feature.
Existing fast checks for this Topic. - Record client ssh -V, server package/build information and distribution release.
- Inspect supported/effective algorithm sets only for the failing negotiation boundary.
- Confirm which OpenSSH configuration files and drop-ins are actually loaded.
- Validate the exact client/server interoperability path after any policy or package change.
Verification chain. distribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workload
Step 3 Commands Verify boundary
ssh -V
systemctl status sshd
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: client/server capability sets differ, a distribution backport changes assumptions, deprecated algorithms are required by one peer or package presence is mistaken for running service health.
Step 5 Common mistakes Narrow the fault
- Old OpenSSH versions with known vulnerabilities.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Server config /etc/ssh/sshd_config (plus sshd_config.d/), client config ~/.ssh/config and /etc/ssh/ssh_config. Check the version with ssh -V — older versions lack modern algorithms or reject old ones.
ssh -v user@host— client-side connection and authentication stepsjournalctl -u ssh -u sshd -e— server logsshd -T— effective server settingsss -ltnp | grep :22— sshd listening
ReferenceWhat it is1 section · depth on demand
Core model
Identify the exact OpenSSH client and server builds rather than reasoning from protocol name alone. Map package/vendor defaults, compiled capabilities and configuration overlays to the negotiated session, then correlate protocol behavior with release notes or distribution policy only when version-specific differences matter.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
OpenSSH version and capability evidence explains implementation behavior but does not show network reachability, effective configuration, successful negotiation or workload outcome.
In depth
OpenSSH components and their files
OpenSSH is a set of programs that share keys and configuration conventions. The sshd(8) manual page lists the files the server relies on, and their permission requirements:
- Private host keys (
/etc/ssh/ssh_host_*_key) must be owned and readable only by root. sshd won't start if they're accessible to group or others. - Public host keys (
*.pub) are world-readable. ~/.sshshould be accessible only by the user.~/.ssh/authorized_keysshould be writable only by the user. If it,~/.sshor the home directory is writable by others, sshd ignores it unlessStrictModesis off./var/empty, used as a chroot before authentication, must be root-owned and not writable by group or others.
The toolset
| Program | Role |
|---|---|
ssh | Client: logins, commands, forwarding |
sshd | Server daemon |
scp / sftp | File transfer (scp uses the SFTP protocol by default since OpenSSH 9.0) |
ssh-keygen | Create keys, show fingerprints, manage known_hosts, sign certificates |
ssh-agent / ssh-add | Hold unlocked private keys for the session |
ssh-keyscan | Collect host keys from servers |
sftp-server / internal-sftp | Server side of SFTP |
File map
| File | Side | Purpose |
|---|---|---|
/etc/ssh/sshd_config | Server | Server configuration |
/etc/ssh/ssh_host_*_key[.pub] | Server | Host identity |
~/.ssh/authorized_keys | Server, per user | Keys allowed to log in as that user |
/etc/ssh/ssh_config, ~/.ssh/config | Client | Client defaults and per-host settings |
~/.ssh/known_hosts | Client | Server keys already trusted |
~/.ssh/id_ed25519[.pub] | Client | The user's own key pair |
srv1$ ls -l /etc/ssh/ssh_host_*
-rw------- 1 root root 399 Mar 3 10:12 /etc/ssh/ssh_host_ed25519_key
-rw-r--r-- 1 root root 93 Mar 3 10:12 /etc/ssh/ssh_host_ed25519_key.pub
srv1$ for f in /etc/ssh/ssh_host_*_key.pub; do ssh-keygen -l -f "$f"; done
256 SHA256:pY3... root@srv1 (ED25519)
srv1$ stat -c '%a %U %n' ~ ~/.ssh ~/.ssh/authorized_keys
755 admin /home/admin
700 admin /home/admin/.ssh
600 admin /home/admin/.ssh/authorized_keys
admin$ ssh -V
Host key fingerprints
Publish the fingerprints from ssh-keygen -l through a trusted channel, such as a CMDB or documentation, or as SSHFP records in DNS. Users can then verify the first connection instead of just accepting the key.
Documented example, not captured output.
How it works at runtime
OpenSSH is part of SSH → OpenSSH. OpenSSH is the predominant Linux implementation of the SSH protocol suite, providing client tools, sshd, key handling, configuration parsing, authentication methods, subsystems and forwarding; package version and vendor backports materially affect defaults and available algorithms.
Runtime state ownership and mechanics. OpenSSH connection setup crosses TCP reachability, server process/listener, algorithm negotiation, host-key verification, user authentication, account/PAM policy, authorization and session/subsystem creation.
Topic-specific state model. OpenSSH is the predominant Linux implementation of the SSH protocol suite, providing client tools, sshd, key handling, configuration parsing, authentication methods, subsystems and forwarding; package version and vendor backports materially affect defaults and available algorithms.
Technical metadata. Client host/distribution/OpenSSH version, server host/distribution/OpenSSH version, timestamp, destination name/address/port, source address, username, ssh_config Host/Match/Include resolution, proxy/jump path, negotiated KEX/host-key/cipher/MAC where relevant, server host-key fingerprint, known_hosts source, authentication method, client identity fingerprint/agent source, authorized-key source/options, sshd_config Include/Match/effective policy, PAM/account result, session type, PTY/command/subsystem, local/remote/dynamic forward endpoints, server PID/unit/listener, remote process/exit status, source/destination file path and hash where relevant, client/server logs and original workload result.
Interpretation rule. - SSH protocol ≠ one fixed OpenSSH implementation or default policy.
- Version string alone ≠ exact feature/security behavior when distributions backport patches.
- Algorithm supported ≠ algorithm enabled by effective client/server policy.
- OpenSSH package installed ≠ sshd enabled, listening or reachable.
Quick reference
OpenSSH components: ssh client, sshd server, ssh-keygen, ssh-agent/ssh-add, scp/sftp, ssh-keyscan. Protocol 2 only; modern defaults use curve25519 key exchange, ed25519/ecdsa/RSA-SHA2 host keys, and chacha20-poly1305/AES-GCM ciphers. OpenSSH 10 removed DSA and added post-quantum hybrid key exchange (mlkem768x25519-sha256) as default.
ssh -V
sshd -V 2>&1 || ssh -V
ssh -Q kex; ssh -Q cipher
Limits and how it fails
Primary failure point. OpenSSH version and capability evidence explains implementation behavior but does not show network reachability, effective configuration, successful negotiation or workload outcome.
Model. A reachable TCP/22 socket does not show SSH negotiation or authentication. SFTP is an SSH subsystem and does not require the same server-side shell/file-copy path as legacy scp behavior.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. OpenSSH owns implementation/version/capability semantics. SSH Client, SSH Server/sshd and configuration Topics own role-specific behavior; Package Management owns package installation/update mechanics.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in SSH → OpenSSH. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.openssh.com/manual.html · confidence 94%Authoritative Linux project/vendor documentation reviewed for bounded reference claims: OpenSSH client/server model, authentication and transport boundaries. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.
Basis: https://www.openssh.com/manual.html · confidence 93%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
OpenSSH operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for OpenSSH.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | OpenSSH is the predominant Linux implementation of the SSH protocol suite, providing client tools, sshd, key handling, configuration parsing, authentication methods, subsystems and forwarding; package version and vendor backports materially affect defaults and available algorithms. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact client/server + attempt time → resolve destination/TCP path → inspect effective client config → identify OpenSSH versions → verify KEX + host-key trust → trace offered/accepted authentication → inspect effective sshd policy for user/source → verify session/subsystem/forward → verify remote process/filesystem/service → repeat original workload. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | distribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | OpenSSH version and capability evidence explains implementation behavior but does not prove network reachability, effective configuration, successful negotiation or workload outcome. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux SSH evidence can establish this proof path: distribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured transport, trust, authentication, policy, session, filesystem or workload scope. OpenSSH version and capability evidence explains implementation behavior but does not prove network reachability, effective configuration, successful negotiation or workload outcome. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: correlate client and server evidence for the same attempt, inspect effective client/server configuration and identity/trust/authentication state, then test the exact requested session, transfer or forward before changing additional layers. | Continue to the next unresolved boundary while preserving the original test condition. |
OpenSSH · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | OpenSSH |
|---|---|
| Topic path | SSH → OpenSSH |
| Runtime state | OpenSSH is the predominant Linux implementation of the SSH protocol suite, providing client tools, sshd, key handling, configuration parsing, authentication methods, subsystems and forwarding; package version and vendor backports materially affect defaults and available algorithms. |
| Fast checks | - Record client ssh -V, server package/build information and distribution release. - Inspect supported/effective algorithm sets only for the failing negotiation boundary. - Confirm which OpenSSH configuration files and drop-ins are actually loaded. - Validate the exact client/server interoperability path after any policy or package change. |
| Verification chain | distribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | OpenSSH version and capability evidence explains implementation behavior but does not prove network reachability, effective configuration, successful negotiation or workload outcome. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |