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 changeFri, 10 May 2024 08:41:01 +0000 (10 18:41 +1000)
last refreshTue, 14 May 2024 02:43:46 +0000 (14 04:43 +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
3 days ago djm@openbsd.orgupstream: simplify exit message handling, which was... master
5 days ago tobias@openbsd.orgupstream: remove SSH1 leftovers
5 days ago tobias@openbsd.orgupstream: never close stdin
6 days ago Damien Millersync getrrsetbyname.c with recent upstream changes
13 days ago djm@openbsd.orgupstream: fix home-directory extension implementation...
13 days ago djm@openbsd.orgupstream: flush stdout after writing "sftp>" prompt...
13 days ago djm@openbsd.orgupstream: stricter validation of messaging socket fd...
13 days ago djm@openbsd.orgupstream: add missing reserved fields to key constraint...
2024-04-30 Damien Millerdepend
2024-04-30 djm@openbsd.orgupstream: correctly restore sigprocmask around ppoll...
2024-04-30 djm@openbsd.orgupstream: add explict check for server hostkey type...
2024-04-30 jsg@openbsd.orgupstream: correct indentation; no functional change...
2024-04-30 semarie@openbsd.orgupstream: set right mode on ssh-agent at boot-time
2024-04-30 deraadt@openbsd.orgupstream: Oops, incorrect hex conversion spotted by...
2024-04-30 deraadt@openbsd.orgupstream: for parse_ipqos(), use strtonum() instead...
2024-04-30 deraadt@openbsd.orgupstream: can shortcut by returning strtonum() value...
...
tags
2 months ago V_9_7_P1 openssh-9.7p1 -----BEGIN SSH SIGNAT...
4 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...
9 months ago V_9_3_P2 openssh-9.3p2 -----BEGIN SSH SIGNAT...
13 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
3 years ago V_8_3_P1 openssh-8.3p1
...
heads
3 days ago master
7 weeks ago V_9_7
4 months ago V_9_6
7 months ago V_9_5
8 months ago V_9_4
9 months ago V_9_3
15 months ago V_9_2
16 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
3 years ago V_8_3
...