Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

OpenSSH

Direct answer

OpenSSH is the standard SSH implementation on Linux: sshd (server), ssh (client), scp/sftp (file transfer), ssh-keygen, ssh-agent and ssh-copy-id.

When to use this

Use it to know which OpenSSH component handles a task and where its configuration lives.

First 30 seconds

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>.

Operational verification

client ssh + config → server sshd + config → keys managed with ssh-keygen/agent

Evidence · next step

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.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandsystemctl status sshd
Scope / prerequisiteUse it to know which OpenSSH component handles a task and where its configuration lives.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points

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.

Key checks
  • ssh -v user@host — client-side connection and authentication steps
  • journalctl -u ssh -u sshd -e — server log
  • sshd -T — effective server settings
  • ss -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.
  • ~/.ssh should be accessible only by the user.
  • ~/.ssh/authorized_keys should be writable only by the user. If it, ~/.ssh or the home directory is writable by others, sshd ignores it unless StrictModes is off.
  • /var/empty, used as a chroot before authentication, must be root-owned and not writable by group or others.

The toolset

ProgramRole
sshClient: logins, commands, forwarding
sshdServer daemon
scp / sftpFile transfer (scp uses the SFTP protocol by default since OpenSSH 9.0)
ssh-keygenCreate keys, show fingerprints, manage known_hosts, sign certificates
ssh-agent / ssh-addHold unlocked private keys for the session
ssh-keyscanCollect host keys from servers
sftp-server / internal-sftpServer side of SFTP

File map

FileSidePurpose
/etc/ssh/sshd_configServerServer configuration
/etc/ssh/ssh_host_*_key[.pub]ServerHost identity
~/.ssh/authorized_keysServer, per userKeys allowed to log in as that user
/etc/ssh/ssh_config, ~/.ssh/configClientClient defaults and per-host settings
~/.ssh/known_hostsClientServer keys already trusted
~/.ssh/id_ed25519[.pub]ClientThe 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
2026-09-13 · vendor docOpenSSH Portable current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
opensshopenssh versionopenssh packagessh implementation
Embedded reference data

Quick lookup tables

OpenSSH operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for OpenSSH.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateOpenSSH 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 verificationPin 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 chaindistribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryOpenSSH 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 evidenceCorrelated Linux SSH evidence can establish this proof path: distribution package/build → OpenSSH binaries/features → client/server configuration → supported/allowed algorithms → negotiation → authentication/session features → workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryOpenSSH
Topic pathSSH → OpenSSH
Runtime stateOpenSSH 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 chaindistribution 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 boundaryOpenSSH 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?