Skip to content
Back to skills

Openssh Knowledge Patch

DSecurity

OpenSSH

  • 25 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
ai-agentsrustgoshellapi

Works with

  • terminal
  • cli
  • api

Security analysis

D50/100
  • criticalAccesses sensitive system or user directories
  • criticalReads or references SSH private keys

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill openssh-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openssh Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openssh Knowledge Patch
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-openssh-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-openssh-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openssh-knowledge-patch
description: OpenSSH
version: "10.6"
license: MIT
metadata:
  author: Nevaberry
---


# OpenSSH Knowledge Patch

Load this skill when upgrading OpenSSH or working on SSH configuration,
authentication, forwarding, agents, keys, certificates, or file transfers.
Use the quick reference for upgrade decisions and common operations; use the
topic references for complete guidance and the version applicable to each item.

## Topic index

| Reference | Topics |
| --- | --- |
| [Configuration and Authentication](references/configuration-and-authentication.md) | Server packaging and platforms; configuration expansion, matching and dumps; authorization files; authentication limits; GSSAPI and PAM |
| [Connections and Agents](references/connections-and-agents.md) | Forwarding restrictions; rekeying; timeouts; IPQoS; compression; multiplexing diagnostics; agent sockets, cleanup and key lifetime |
| [Cryptography, Certificates, and Keys](references/cryptography-and-keys.md) | Hybrid signatures; key exchange; cipher preferences; token keys; certificate checks; signing, export and private-key storage |
| [File Transfer](references/file-transfer.md) | Transfer multiplexing; remote copies; destination containment; permissions; SFTP restrictions, directories and listings |

## Breaking changes and upgrade checks

### Password authentication without PAM

Upgrade Portable OpenSSH servers built and run without PAM support on musl-based
Linux to 10.6p2 for the password authentication bypass fix.

### Hybrid signature migration

10.4 adds an experimental composite signature scheme combining ML-DSA 44 and
Ed25519. It requires explicitly adding the algorithm to the relevant allow-lists,
such as `HostKeyAlgorithms` and `PubkeyAcceptedAlgorithms`.
10.6 enables `ssh-mldsa44-ed25519` by default. Regenerate or remove keys from the
10.4 experimental implementation and replace the old `@openssh.com` algorithm
spelling in explicit allow-lists.
In 10.6p2, `ssh` accepts these CA signatures on host certificates by default,
and `sshd` does the same for user certificates.

### Server packaging and sandbox support

Server packages for 10.0 must install `sshd-auth`. Some messages previously logged
under `sshd-session` now appear under `sshd-auth`.
In 10.4 Linux builds with the seccomp sandbox enabled, failure to enable seccomp
or `NO_NEW_PRIVS` is fatal. For targets lacking these facilities, disable the
sandbox at configure time.
For 10.6, `sshd` builds against macOS SDK 27 or later lack sandbox support because
the SDK removed the sandboxing API OpenSSH used.

### Legacy platform support

In 10.6, on platforms that lack file descriptor passing and require root for PTY
allocation, such as QNX 6 and SCO OpenServer 5, `sshd` forcibly disables
`GatewayPorts` and `StreamLocalForwarding`. Support for these platforms will be
dropped in a future release. Portable OpenSSH 10.6 removes the
`--disable-fd-passing` configure option.

### Forwarding restrictions

In 10.0, `DisableForwarding yes` also blocks agent and X11 forwarding, including
on servers configured to permit them. In 10.4 it overrides `PermitTunnel yes`.
In 10.6, the `restrict` option in `authorized_keys` blocks tunnel forwarding even
when `sshd_config` enables it with `PermitTunnel`.
In 10.5, `ssh-agent` records forwarded sessions even while locked, preserving
local-only PKCS#11 token-loading restrictions and key destination constraints.
10.5 also fixes a client memory-safety issue during concurrent remote-forward
setup on a multiplexed connection.

### Rekeying compatibility

From 10.3, peers lacking rekeying support can connect initially but lose the
connection when the transport next needs to rekey.
In 10.4, both `ssh` and `sshd` disconnect peers that send non-key-exchange messages
during post-authentication rekeying. Check peer implementations for compliance
with RFC 4253 section 7.1 if connections start dropping during rekeying.

### Remote-to-remote copy deprecation

`scp -R` still performs the transfer from the source host in 10.6 and emits a
deprecation warning on standard error. A future release will ignore `-R` and
route the transfer through the machine running `scp`, which is already the default.

### Transfer containment and server restrictions

10.4 fixes destination containment for command-line downloads such as
`sftp host:/path .`. Update clients that use this form against untrusted servers.
For remote-to-remote copies, 10.4 prevents a malicious server from writing files
into the parent of the intended target directory.
10.6 validates server-returned paths more strictly for recursive SFTP copies to
keep downloads inside the selected destination directory.
10.4 honors options after the ninth argument to `internal-sftp`; review long
invocations on upgrade because previously ignored restrictions can take effect.

### Configuration parsing and destination usernames

`sshd -G` emits mixed-case directive names in 10.4; 10.6 corrects option casing in
`ssh -G`. Match directive names case-insensitively in scripts parsing either output.
In 10.6, `ssh` rejects command-line destination usernames containing a dollar sign
or backslash. Set such usernames with `User` in the client configuration file.
10.4 rejects invalid cipher or MAC lists in configuration files or on the command
line in both `ssh` and `sshd`.

### Key storage and transport compression

In 10.6, `ssh-keygen` defaults to 32 KDF rounds, up from 24. Reading and writing
OpenSSH-format private keys is subject to a 1M-round limit.
10.6 disables LZ77 dictionary coding in `ssh` and `sshd` to mitigate a compression
side channel. `Compression yes` still works with reduced effectiveness.
Applications can compress their data before sending it over SSH.

## Common configuration and operations

### Multiplexed file transfers and terminal sessions

In 10.0, `scp` and `sftp` pass `ControlMaster no` to `ssh`. To multiplex transfers,
start the master with `ssh` first and point the transfer clients at its `ControlPath`.
10.2 fixes the 10.1 regression that could make terminal sessions unusable with
`ControlPersist` enabled. In 10.3, `ControlMaster ask` and `autoask` confirmation
also apply to `ssh -O proxy`.

### Client expansion and matching

10.0 expands environment variables and percent tokens in `User` and `SetEnv`.
In `User`, choose tokens other than the self-referential `%r` and `%C`.

```sshconfig
Host work
    User ${WORK_SSH_USER}
    SetEnv SSH_TARGET=%h
```

10.0 adds `Match version` to both configuration files. The client also supports
`Match sessiontype` with `shell`, `exec`, `subsystem`, or `none`, and `Match command`
for the remote command supplied on the command line. Use `Match tagged ""` or
`Match command ""` to match an empty tag or command.

### Agent socket placement and cleanup

10.1 puts local agent sockets and server-side forwarded sockets under `~/.ssh/agent`.
By default, `ssh-agent` cleans stale sockets for the local hostname on startup.
Use `-U` to skip cleanup, `-u` to clean and exit, `-uu` to include other hostnames,
or `-T` to place the local agent socket under `/tmp`.
In 10.6, the default `AgentSocketPath user:.ssh/agent` in `sshd_config` uses a
directory under the user's home for the forwarded `SSH_AUTH_SOCK`.
`AgentSocketPath shared:/tmp` uses a randomly named subdirectory under `/tmp`.
For a local agent, use `ssh-agent -A user:.ssh/agent` or `ssh-agent -A shared:/tmp`.
Portable OpenSSH 10.6p2 fixes local and forwarded agent socket creation on
platforms without `openat(2)`.

### Agent key lifetime and inspection

From 10.1, certificates added with `ssh-add` are removed from the agent five
minutes after expiry.
Use `ssh-add -N ~/.ssh/id_ed25519` to omit the automatic certificate lifetime when
loading the identity and its certificate.
In 10.0, `kill -USR1 "$agent_pid"` clears all keys from that `ssh-agent` process
without socket access. In 10.3, `ssh-add -Q` lists extensions reported by the
connected agent through the `query` extension.

### Authentication probes and source penalties

In 10.6, the first six queries about whether a public key is acceptable are
exempt from `MaxAuthTries` by default. Set `PubkeyAuthOptions max-pk-ok:10` in
`sshd_config` to allow ten exempt probes before further probes count as failures.
10.3 adds `invaliduser` to `PerSourcePenalties`, defaulting to five seconds for
attempts against nonexistent accounts. Fractional penalties are accepted, as in
`PerSourcePenalties invaliduser:10s authfail:0.5s`.

### Keepalives, timeouts, and traffic marking

In 10.6, `TCPKeepAlive all` in `ssh_config` and `sshd_config` enables keepalives on
the SSH connection and forwarding sockets; `yes` and `transport` enable them on
the SSH connection alone. Both `ssh` and `sshd` accept fractional channel timeouts such
as `ChannelTimeout session=1.5s`; a general `session` rule applies to shell channels.
For a connection that has opened channels, 10.3 starts `UnusedConnectionTimeout`
after the final channel closes, including when `ChannelTimeout` closes it.
10.1 defaults `IPQoS` to `ef` for interactive traffic and the OS default for
noninteractive traffic. A connection carrying both a shell and SFTP uses the
noninteractive marking while the SFTP channel is open. The old `lowdelay`,
`reliability`, and `throughput` keywords select the OS default.
10.3 adds `va`, as in `IPQoS ef va`, and makes the first applicable `IPQoS` setting
in `sshd_config` win.

### Inspecting live connections

10.3 adds `~I` and `ssh -O conninfo user@host` for connection details, plus
`ssh -O channels user@host` to list open channels on a multiplexed connection.
In 10.6, `~I` includes both local and remote SSH version strings.
Starting in 10.1, `ssh` and `sshd` log active channel and session information on
`SIGINFO` where that signal is available.

### Token keys and exports

In 10.6, use `ssh-add -P` to skip PIN entry when loading from FIDO or PKCS#11 tokens
that permit it, for example `ssh-add -P -K` for FIDO resident keys.
When importing resident keys, `ssh-keygen` and `ssh-add` check `credProtect` and
preserve any requirement for PIN or biometric verification.
Use `ssh-keygen -e -m hexdump -f ~/.ssh/id_ed25519.pub` to print the SSH wire-format
key blob in hexadecimal in 10.6.

### SFTP directory creation and listings

In 10.6, `mkdir -p path/to/dir` inside `sftp` creates missing remote parent
directories; `lmkdir -p path/to/dir` does the same locally. Existing directories
are accepted. In 10.4, `ls -ln` inside `sftp` displays numeric user and group IDs;
scripts parsing these listings should expect numbers in the owner and group columns.

Files in this skill

  • SKILL.md10.2 KB
  • coverage.json520 B
  • references/configuration-and-authentication.md5.1 KB
  • references/connections-and-agents.md3.8 KB
  • references/cryptography-and-keys.md3.9 KB
  • references/file-transfer.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.