OpenSSH 10.6 Enables ML-DSA Post-Quantum Signatures and Fixes an sftp Path Traversal

OpenSSH 10.6 Enables ML-DSA Post-Quantum Signatures and Fixes an sftp Path Traversal

OpenSSH 10.6 was released on October 6, two months after OpenSSH 10.5.

Security fixes

  • sftp: paths returned by a server are validated more strictly, so a malicious server can no longer steer a recursive download outside the target directory
  • Compression: the LZ77 dictionary coder is disabled to mitigate a cross-channel plaintext recovery attack. Compression still works but is less effective
  • ssh rejects usernames given on the command line that contain $ or \, preventing shell injection through ProxyCommand and Match exec
  • sshd GSSAPI credentials are stored only after successful authentication
  • The restrict keyword in authorized_keys now fully applies to tunnel forwarding
  • ssh-keygen fixes a daylight saving time bug that could make certificate expiry times off by an hour

Post-quantum signatures

The hybrid ssh-mldsa44-ed25519 signature algorithm, which pairs ML-DSA-44 with Ed25519, is now enabled under its final name. Keys made with the earlier experimental @openssh.com variant must be regenerated.

A new WarnWeakCrypto option in sshd_config, on by default, logs when a client connects using key exchange that is not post-quantum safe. Expect new log lines from older clients.

Other new features

  • AgentSocketPath in sshd and ssh-agent -A control where agent sockets live
  • sftp supports mkdir -p
  • ssh-add -P skips PIN entry for tokens that do not need it, and FIDO resident keys keep their user-verification requirement
  • TCPKeepAlive all also applies keepalives to forwarded connections
  • ssh -I shows local and remote version strings

Deprecations

scp -R now prints a deprecation warning and will eventually be ignored. Our scp, sftp, and rsync guide covers the alternatives.

Your distribution will ship the fixes in its own OpenSSH packages. The source is on our OpenSSH 10.6 download page, and our SSH hardening guide covers the settings that matter most.

Background reading

Explainers for the concepts behind this story.