descriptionPortable OpenSSH is a multi-platform compatible version of OpenBSD's OpenSSH
homepage URLhttp://www.openssh.com/
repository URLhttps://anongit.mindrot.org/openssh.git
ownermackyle@gmail.com
last changeMon, 27 May 2024 01:55:15 +0000 (27 11:55 +1000)
last refreshTue, 28 May 2024 19:16:14 +0000 (28 21:16 +0200)
content tags
add:
README.md

Portable OpenSSH

C/C++ CI 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 either LibreSSL or OpenSSL may also be used. OpenSSH may be built without either 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

Releases 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 git, 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.

FlagMeaning
--with-pamEnable PAM support. OpenPAM, Linux PAM and Solaris PAM are supported.
--with-libeditEnable libedit support for sftp.
--with-kerberos5Enable Kerberos/GSSAPI support. Both Heimdal and MIT Kerberos implementations are supported.
--with-selinuxEnable 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 openssh@openssh.com.

shortlog
41 hours ago djm@openbsd.orgupstream: don't need sys/queue.h heremaster
41 hours ago naddy@openbsd.orgupstream: remove references to SSH1 and DSA server...
41 hours ago jsg@openbsd.orgupstream: remove unused struct fwd_perm_list, no decl...
41 hours ago naddy@openbsd.orgupstream: Do not pass -Werror twice when building with...
41 hours ago miod@openbsd.orgupstream: Do not pass -Werror if building with gcc...
6 days ago djm@openbsd.orgupstream: this test has been broken since 2014, and...
6 days ago anton@openbsd.orgupstream: Add missing kex-names.c source file required...
6 days ago naddy@openbsd.orgupstream: remove duplicate copy of relink kit for sshd...
6 days ago jsg@openbsd.orgupstream: remove prototypes with no matching function...
6 days ago jsg@openbsd.orgupstream: remove externs for removed vars; ok djm@
6 days ago deraadt@openbsd.orgupstream: -Werror was turned on (probably just for...
11 days ago Damien Millerattempt at updating RPM specs for sshd-session
11 days ago djm@openbsd.orgupstream: g/c unused variable
11 days ago jsg@openbsd.orgupstream: spelling; ok djm@
11 days ago djm@openbsd.orgupstream: allow overriding the sshd-session binary...
11 days ago anton@openbsd.orgupstream: Since ssh-agent(1) is only readable by root...
...
tags
2 months ago V_9_7_P1 openssh-9.7p1 -----BEGIN SSH SIGNAT...
5 months ago V_9_6_P1 openssh-9.6p1 -----BEGIN SSH SIGNAT...
7 months ago V_9_5_P1 openssh-9.5p1 -----BEGIN SSH SIGNAT...
9 months ago V_9_4_P1 openssh-9.4 -----BEGIN SSH SIGNATUR...
10 months ago V_9_3_P2 openssh-9.3p2 -----BEGIN SSH SIGNAT...
14 months ago V_9_3_P1 openssh-9.3p1 -----BEGIN SSH SIGNAT...
15 months ago V_9_2_P1 openssh-9.2p1 -----BEGIN SSH SIGNAT...
19 months ago V_9_1_P1 openssh-9.1 -----BEGIN SSH SIGNATUR...
2 years ago V_9_0_P1 openssh-9.0
2 years ago V_8_9_P1 openssh-8.9p1
2 years ago V_8_8_P1 openssh-8.8p1
2 years ago V_8_7_P1 openssh-8.7p1
3 years ago V_8_6_P1 openssh-8.6p1
3 years ago V_8_5_P1 openssh-8.5
3 years ago V_8_4_P1 openssh-8.4p1
4 years ago V_8_3_P1 openssh-8.3p1
...
heads
41 hours ago master
2 months ago V_9_7
5 months ago V_9_6
7 months ago V_9_5
8 months ago V_9_4
10 months ago V_9_3
15 months ago V_9_2
17 months ago V_9_1
2 years ago V_9_0
2 years ago V_8_9
2 years ago V_8_8
2 years ago V_8_7
3 years ago V_8_6
3 years ago V_8_5
3 years ago V_8_4
4 years ago V_8_3
...