gbucchino 41d3f2785d
CI / ubuntu-latest aws-lc (push) Canceled after 0s
CI / ubuntu-latest boringssl (push) Canceled after 0s
CI / ubuntu-22.04 c89 (push) Canceled after 0s
CI / ubuntu-22.04 clang-11 (push) Canceled after 0s
CI / ubuntu-22.04 clang-12-Werror (push) Canceled after 0s
CI / ubuntu-22.04 clang-14 (push) Canceled after 0s
CI / ubuntu-latest clang-15 (push) Canceled after 0s
CI / ubuntu-latest clang-19 (push) Canceled after 0s
CI / ubuntu-22.04 clang-sanitize-address (push) Canceled after 0s
CI / ubuntu-22.04 clang-sanitize-undefined (push) Canceled after 0s
CI / windows-2022 cygwin-release (push) Canceled after 0s
CI / windows-2025 cygwin-release (push) Canceled after 0s
CI / macos-14 default (push) Canceled after 0s
CI / macos-15 default (push) Canceled after 0s
CI / macos-15-intel default (push) Canceled after 0s
CI / ubuntu-22.04 default (push) Canceled after 0s
CI / ubuntu-22.04-arm default (push) Canceled after 0s
CI / ubuntu-24.04-arm default (push) Canceled after 0s
CI / ubuntu-latest default (push) Canceled after 0s
CI / windows-2022 default (push) Canceled after 0s
CI / windows-2025 default (push) Canceled after 0s
CI / ubuntu-latest dropbear-versions (push) Canceled after 0s
CI / ubuntu-22.04 gcc-11-Werror (push) Canceled after 0s
CI / ubuntu-22.04 gcc-12-Werror (push) Canceled after 0s
CI / ubuntu-latest gcc-14 (push) Canceled after 0s
CI / ubuntu-22.04 gcc-9 (push) Canceled after 0s
CI / ubuntu-22.04 gcc-sanitize-address (push) Canceled after 0s
CI / ubuntu-22.04 gcc-sanitize-undefined (push) Canceled after 0s
CI / ubuntu-latest hardenedmalloc (push) Canceled after 0s
CI / ubuntu-22.04 heimdal (push) Canceled after 0s
CI / ubuntu-22.04 kitchensink (push) Canceled after 0s
CI / ubuntu-22.04-arm kitchensink (push) Canceled after 0s
CI / ubuntu-24.04-arm kitchensink (push) Canceled after 0s
CI / ubuntu-22.04 krb5 (push) Canceled after 0s
CI / ubuntu-22.04 libedit (push) Canceled after 0s
CI / ubuntu-latest libressl-3.2.7 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.3.6 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.4.3 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.5.4 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.6.3 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.7.3 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.8.4 (push) Canceled after 0s
CI / ubuntu-latest libressl-3.9.2 (push) Canceled after 0s
CI / ubuntu-latest libressl-4.0.1 (push) Canceled after 0s
CI / ubuntu-latest libressl-4.1.1 (push) Canceled after 0s
CI / ubuntu-latest libressl-4.2.0 (push) Canceled after 0s
CI / ubuntu-latest libressl-4.3.2 (push) Canceled after 0s
CI / ubuntu-latest libressl-master (push) Canceled after 0s
CI / ubuntu-latest musl (push) Canceled after 0s
CI / ubuntu-latest openssl-1.1.1 (push) Canceled after 0s
CI / ubuntu-latest openssl-1.1.1_stable (push) Canceled after 0s
CI / ubuntu-latest openssl-1.1.1t (push) Canceled after 0s
CI / ubuntu-latest openssl-1.1.1w (push) Canceled after 0s
CI / ubuntu-latest openssl-3.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.0.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.0.18 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.1 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.1.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.1.8 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.2 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.2.6 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.3 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.3.7 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.4 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.4.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.4.5 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.5 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.5.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.5.3 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.5.6 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.6 (push) Canceled after 0s
CI / ubuntu-latest openssl-3.6.2 (push) Canceled after 0s
CI / ubuntu-latest openssl-4.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-4.0.0 (push) Canceled after 0s
CI / ubuntu-latest openssl-master (push) Canceled after 0s
CI / macos-14 pam (push) Canceled after 0s
CI / macos-15 pam (push) Canceled after 0s
CI / ubuntu-22.04 pam (push) Canceled after 0s
CI / ubuntu-latest putty-versions (push) Canceled after 0s
CI / ubuntu-22.04 selinux (push) Canceled after 0s
CI / ubuntu-22.04 sk (push) Canceled after 0s
CI / ubuntu-latest tcmalloc (push) Canceled after 0s
CI / ubuntu-22.04 valgrind-1 (push) Canceled after 0s
CI / ubuntu-22.04 valgrind-2 (push) Canceled after 0s
CI / ubuntu-22.04 valgrind-3 (push) Canceled after 0s
CI / ubuntu-22.04 valgrind-4 (push) Canceled after 0s
CI / ubuntu-22.04 valgrind-unit (push) Canceled after 0s
CI / ubuntu-22.04 without-openssl (push) Canceled after 0s
CI / ubuntu-latest zlib-develop (push) Canceled after 0s
CIFuzz / Fuzzing (push) Canceled after 0s
CI self-hosted / win10 cygwin-release (push) Canceled after 0s
CI self-hosted / ARM default (push) Canceled after 0s
CI self-hosted / ARM64 default (push) Canceled after 0s
CI self-hosted / alpine default (push) Canceled after 0s
CI self-hosted / centos7 default (push) Canceled after 0s
CI self-hosted / debian-i386 default (push) Canceled after 0s
CI self-hosted / dfly30 default (push) Canceled after 0s
CI self-hosted / dfly48 default (push) Canceled after 0s
CI self-hosted / dfly60 default (push) Canceled after 0s
CI self-hosted / dfly62 default (push) Canceled after 0s
CI self-hosted / dfly64 default (push) Canceled after 0s
CI self-hosted / fbsd10 default (push) Canceled after 0s
CI self-hosted / fbsd12 default (push) Canceled after 0s
CI self-hosted / fbsd13 default (push) Canceled after 0s
CI self-hosted / fbsd14 default (push) Canceled after 0s
CI self-hosted / nbsd10 default (push) Canceled after 0s
CI self-hosted / nbsd11 default (push) Canceled after 0s
CI self-hosted / nbsd3 default (push) Canceled after 0s
CI self-hosted / nbsd4 default (push) Canceled after 0s
CI self-hosted / nbsd8 default (push) Canceled after 0s
CI self-hosted / nbsd9 default (push) Canceled after 0s
CI self-hosted / obsd51 default (push) Canceled after 0s
CI self-hosted / obsd67 default (push) Canceled after 0s
CI self-hosted / obsd72 default (push) Canceled after 0s
CI self-hosted / obsd74 default (push) Canceled after 0s
CI self-hosted / obsd76 default (push) Canceled after 0s
CI self-hosted / obsd77 default (push) Canceled after 0s
CI self-hosted / obsd78 default (push) Canceled after 0s
CI self-hosted / obsd79 default (push) Canceled after 0s
CI self-hosted / obsdsnap default (push) Canceled after 0s
CI self-hosted / obsdsnap-i386 default (push) Canceled after 0s
CI self-hosted / omnios default (push) Canceled after 0s
CI self-hosted / openindiana default (push) Canceled after 0s
CI self-hosted / ubuntu-2204 default (push) Canceled after 0s
CI self-hosted / obsdsnap-arm64 default (push) Canceled after 0s
CI self-hosted / aix51 default (push) Canceled after 0s
CI self-hosted / sol10 default (push) Canceled after 0s
CI self-hosted / sol11 default (push) Canceled after 0s
CI self-hosted / win10 default (push) Canceled after 0s
CI self-hosted / debian-riscv64 default (push) Canceled after 0s
CI self-hosted / nbsd-arm64be default (push) Canceled after 0s
CI self-hosted / openwrt-mips default (push) Canceled after 0s
CI self-hosted / openwrt-mipsel default (push) Canceled after 0s
CI self-hosted / ARM64 pam (push) Canceled after 0s
CI self-hosted / centos7 pam (push) Canceled after 0s
CI self-hosted / debian-i386 pam (push) Canceled after 0s
CI self-hosted / dfly48 pam (push) Canceled after 0s
CI self-hosted / dfly58 pam (push) Canceled after 0s
CI self-hosted / dfly60 pam (push) Canceled after 0s
CI self-hosted / dfly62 pam (push) Canceled after 0s
CI self-hosted / dfly64 pam (push) Canceled after 0s
CI self-hosted / fbsd10 pam (push) Canceled after 0s
CI self-hosted / fbsd12 pam (push) Canceled after 0s
CI self-hosted / fbsd13 pam (push) Canceled after 0s
CI self-hosted / fbsd14 pam (push) Canceled after 0s
CI self-hosted / nbsd10 pam (push) Canceled after 0s
CI self-hosted / nbsd11 pam (push) Canceled after 0s
CI self-hosted / nbsd8 pam (push) Canceled after 0s
CI self-hosted / nbsd9 pam (push) Canceled after 0s
CI self-hosted / omnios pam (push) Canceled after 0s
CI self-hosted / openindiana pam (push) Canceled after 0s
CI self-hosted / sol10 pam (push) Canceled after 0s
CI self-hosted / sol11 pam-krb5 (push) Canceled after 0s
CI self-hosted / sol11 sol64 (push) Canceled after 0s
CI self-hosted / dfly30 without-openssl (push) Canceled after 0s
OpenBSD / upstream obsdsnap default (push) Canceled after 0s
OpenBSD / upstream obsdsnap-i386 default (push) Canceled after 0s
OpenBSD / upstream obsdsnap-arm64 default (push) Canceled after 0s
OpenBSD / upstream obsdsnap kerberos5 (push) Canceled after 0s
OpenBSD / upstream obsdsnap-i386 kerberos5 (push) Canceled after 0s
OpenBSD / upstream obsdsnap-arm64 kerberos5 (push) Canceled after 0s
OpenBSD / upstream obsdsnap without-openssl (push) Canceled after 0s
OpenBSD / upstream obsdsnap-i386 without-openssl (push) Canceled after 0s
OpenBSD / upstream obsdsnap-arm64 without-openssl (push) Canceled after 0s
CI VM / dragonflybsd-6.4.2 (push) Canceled after 0s
CI VM / freebsd-12.4 (push) Canceled after 0s
CI VM / freebsd-13.5 (push) Canceled after 0s
CI VM / freebsd-14.4 (push) Canceled after 0s
CI VM / freebsd-15.0 (push) Canceled after 0s
CI VM / netbsd-10.0 (push) Canceled after 0s
CI VM / netbsd-10.1 (push) Canceled after 0s
CI VM / netbsd-11.0 (push) Canceled after 0s
CI VM / netbsd-9.0 (push) Canceled after 0s
CI VM / netbsd-9.4 (push) Canceled after 0s
CI VM / omnios-r151056-build (push) Canceled after 0s
CI VM / omnios-r151058-build (push) Canceled after 0s
CI VM / openbsd-7.3 (push) Canceled after 0s
CI VM / openbsd-7.5 (push) Canceled after 0s
CI VM / openbsd-7.6 (push) Canceled after 0s
CI VM / openbsd-7.7 (push) Canceled after 0s
CI VM / openbsd-7.8 (push) Canceled after 0s
CI VM / openbsd-7.9 (push) Canceled after 0s
CI VM / openbsd-current-upstream (push) Canceled after 0s
CI VM / solaris-11.4-clang-19 (push) Canceled after 0s
CI VM / solaris-11.4-gcc (push) Canceled after 0s
Add rsa_keys
2026-08-14 12:51:02 +01:00
2026-08-11 12:21:59 +10:00
2026-08-14 11:49:01 +01:00
2026-07-07 12:18:56 +10:00
2026-02-08 04:40:08 +11:00
2017-10-20 12:58:35 +11:00
2016-03-08 06:20:35 +11:00
2023-03-24 13:56:25 +11:00
2026-07-01 11:09:17 +10:00
2022-12-06 12:23:08 +11:00
2019-07-29 09:49:23 +10:00
2026-07-21 15:23:24 +10:00
upd
2026-08-14 11:35:37 +01:00
2026-08-03 22:06:26 +10:00
2025-10-07 20:25:07 +11:00
2022-12-06 12:23:08 +11:00
2026-08-14 12:51:02 +01:00
2026-08-14 11:39:27 +01:00
2026-07-31 21:41:10 +10:00
2026-08-14 12:51:02 +01:00
2026-02-08 02:55:47 +11:00
2026-02-08 02:55:47 +11:00
2026-08-14 12:51:02 +01:00
2026-08-14 12:51:02 +01:00
2025-10-14 18:40:39 +11:00
2026-06-07 18:53:25 +10:00
2022-04-16 14:33:20 +10:00
2026-02-11 12:38:48 -05:00
2020-02-11 12:51:24 +11:00
2026-07-22 08:34:32 +10:00
2025-10-06 12:18:28 +11:00
2017-09-12 17:37:02 +10:00
2023-01-06 16:21:39 +11:00
2025-09-05 17:06:14 +10:00
2026-02-10 13:17:13 +11:00
2026-08-01 12:29:37 +10:00
2026-08-12 09:29:31 +10:00
2024-12-05 01:28:54 +11:00
2026-08-01 12:29:37 +10:00
2017-05-01 10:05:04 +10:00
2018-02-09 20:00:18 +11:00
2022-01-01 15:19:48 +11:00
2026-08-11 09:30:02 +10:00
2025-09-05 17:06:14 +10:00

Portable OpenSSH

C/C++ CI VM CI C/C++ CI self-hosted CIFuzz Fuzzing Status Coverity Status

OpenSSH is a complete implementation of the SSH protocol (version 2) for secure remote login, command execution and file transfer. It includes a client ssh and server sshd, file transfer utilities scp and sftp as well as tools for key generation (ssh-keygen), run-time key storage (ssh-agent) and a number of supporting programs.

This is a port of OpenBSD's OpenSSH to most Unix-like operating systems, including Linux, OS X and Cygwin. Portable OpenSSH polyfills OpenBSD APIs that are not available elsewhere, adds sshd sandboxing for more operating systems and includes support for OS-native authentication and auditing (e.g. using PAM).

Documentation

The official documentation for OpenSSH are the man pages for each tool:

Stable Releases

Stable release tarballs are available from a number of download mirrors. We recommend the use of a stable release for most users. Please read the release notes for details of recent changes and potential incompatibilities.

Building Portable OpenSSH

Dependencies

Portable OpenSSH is built using autoconf and make. It requires a working C compiler, standard library and headers.

libcrypto from one of LibreSSL, OpenSSL, AWS-LC or BoringSSL may also be used. OpenSSH may be built without any of these, but the resulting binaries will have only a subset of the cryptographic algorithms normally available.

zlib is optional; without it transport compression is not supported.

FIDO security token support needs libfido2 and its dependencies and will be enabled automatically if they are found.

In addition, certain platforms and build-time options may require additional dependencies; see README.platform for details about your platform.

Building a release

Release tarballs and release branches in git include a pre-built copy of the configure script and may be built using:

tar zxvf openssh-X.YpZ.tar.gz
cd openssh
./configure # [options]
make && make tests

See the Build-time Customisation section below for configure options. If you plan on installing OpenSSH to your system, then you will usually want to specify destination paths.

Building from git

If building from the git master branch, you'll need autoconf installed to build the configure script. The following commands will check out and build portable OpenSSH from git:

git clone https://github.com/openssh/openssh-portable # or https://anongit.mindrot.org/openssh.git
cd openssh-portable
autoreconf
./configure
make && make tests

Build-time Customisation

There are many build-time customisation options available. All Autoconf destination path flags (e.g. --prefix) are supported (and are usually required if you want to install OpenSSH).

For a full list of available flags, run ./configure --help but a few of the more frequently-used ones are described below. Some of these flags will require additional libraries and/or headers be installed.

Flag Meaning
--with-pam Enable PAM support. OpenPAM, Linux PAM and Solaris PAM are supported.
--with-libedit Enable libedit support for sftp.
--with-kerberos5 Enable Kerberos/GSSAPI support. Both Heimdal and MIT Kerberos implementations are supported.
--with-selinux Enable SELinux support.

Development

Portable OpenSSH development is discussed on the openssh-unix-dev mailing list (archive mirror). Bugs and feature requests are tracked on our Bugzilla.

Reporting bugs

Non-security bugs may be reported to the developers via Bugzilla or via the mailing list above. Security bugs should be reported to [email protected].

S
Description
Portable OpenSSH
Readme
91 MiB
Languages
C 68.6%
C++ 12.5%
Shell 7.7%
Roff 4.9%
Makefile 3.4%
Other 2.8%