CocoaEngineering
FORMULAv10.6p2

openssh for macOS

OpenBSD freely-licensed SSH connectivity tools

Installation on macOS (Apple Silicon & Intel)

brew install openssh

Package Metadata

Identifieropenssh
Current Version10.6p2
Tap Repositoryhomebrew/core
LicenseSSH-OpenSSH
Upstream Homepagehttps://www.openssh.com/
Last Verified2026-11-26T14:43:31Z

Runtime Dependencies (3)

ldns libfido2 openssl@4

Build Dependencies (1)

pkgconf

Engineering Caveats

Default host keys in $HOMEBREW_PREFIX/etc/ssh are regenerated once to replace keys
previously distributed in bottles. This also replaces locally generated keys.

Previous host keys are backed up in:
  $HOMEBREW_PREFIX/var/lib/openssh/host-keys-backup
Restore them only if you generated them yourself.

Restart any running Homebrew sshd to use the new host keys.
SSH clients may report changed host keys. Verify the new fingerprints
before updating their known_hosts entries.
Browse macOS Packages A–Z