Portable OpenSSH, all Win32-OpenSSH releases and wiki are managed at https://github.com/powershell/Win32-OpenSSH
Go to file
djm@openbsd.org 9c25d37697 upstream: missing files from previous
OpenBSD-Commit-ID: 4b7be4434d8799f02365552b641a7a70a7ebeb2f
2024-08-02 14:21:00 -04:00
.azdo
.github Remove 9.6 branch from status page. 2024-04-25 13:19:03 +10:00
contrib continue merge - not compiling 2024-08-02 14:20:51 -04:00
m4 Improve detection of -fzero-call-used-regs=used. 2024-03-25 10:12:58 +11:00
openbsd-compat start merge - not compiling 2024-07-24 10:25:43 -04:00
regress start merge - not compiling 2024-07-24 10:25:43 -04:00
.depend depend 2024-04-30 12:39:34 +10:00
.git_allowed_signers add new token-based signing key for dtucker@ 2024-03-30 16:05:59 +11:00
.git_allowed_signers.asc add new token-based signing key for dtucker@ 2024-03-30 16:05:59 +11:00
.gitignore Merge remote-tracking branch 'upstream-openssh-portable/master' into sync-with-upstream-2 2024-02-05 12:12:38 -05:00
.skipped-commit-ids upstream: set right mode on ssh-agent at boot-time 2024-04-30 12:17:35 +10:00
CREDITS
INSTALL
LICENCE
Makefile.in
NOTICE
OVERVIEW
PROTOCOL upstream: fix missing field in users-groups-by-id@openssh.com reply 2024-01-08 16:06:29 +11:00
PROTOCOL.agent upstream: add missing reserved fields to key constraint protocol 2024-04-30 15:46:39 +10:00
PROTOCOL.certkeys
PROTOCOL.chacha20poly1305
PROTOCOL.key upstream: in OpenSSH private key format, correct type for subsequent 2024-03-30 16:57:32 +11:00
PROTOCOL.krl
PROTOCOL.mux upstream: Remove outdated note from PROTOCOL.mux 2024-01-08 16:12:17 +11:00
PROTOCOL.sshsig
PROTOCOL.u2f
README version number in README 2024-03-11 16:20:49 +11:00
README.dns
README.md
README.platform nite that recent OSX tun/tap is unsupported 2024-01-08 16:26:37 +11:00
README.privsep
README.tun
SECURITY.md
TODO
addr.c upstream: Use strtonum() instead of severely non-idomatic 2024-04-30 12:16:50 +10:00
addr.h
addrmatch.c
atomicio.c
atomicio.h
audit-bsm.c
audit-linux.c
audit.c
audit.h
auth-bsdauth.c
auth-krb5.c
auth-options.c
auth-options.h
auth-pam.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth-pam.h upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth-passwd.c
auth-rhosts.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth-shadow.c
auth-sia.c
auth-sia.h
auth.c start merge - not compiling 2024-07-24 10:25:43 -04:00
auth.h start merge - not compiling 2024-07-24 10:25:43 -04:00
auth2-chall.c
auth2-gss.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth2-hostbased.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth2-kbdint.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth2-methods.c upstream: missing files from previous 2024-08-02 14:21:00 -04:00
auth2-none.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth2-passwd.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
auth2-pubkey.c start merge - not compiling 2024-07-24 10:25:43 -04:00
auth2-pubkeyfile.c
auth2.c start merge - not compiling 2024-07-24 10:25:43 -04:00
authfd.c upstream: Make it possible to load certs from PKCS#11 tokens 2023-12-19 01:52:55 +11:00
authfd.h upstream: Make it possible to load certs from PKCS#11 tokens 2023-12-19 01:52:55 +11:00
authfile.c
authfile.h
bitmap.c
bitmap.h
buildpkg.sh.in
canohost.c
canohost.h
chacha.c
chacha.h
channels.c start merge - not compiling 2024-07-24 10:25:43 -04:00
channels.h upstream: stricter handling of channel window limits 2023-12-19 01:52:55 +11:00
cipher-aes.c
cipher-aesctr.c
cipher-aesctr.h
cipher-chachapoly-libcrypto.c
cipher-chachapoly.c
cipher-chachapoly.h
cipher.c
cipher.h
cleanup.c
clientloop.c start merge - not compiling 2024-07-24 10:25:43 -04:00
clientloop.h
compat.c
compat.h
config.guess
config.sub
configure.ac Merge flags for OpenSSL 3.x versions. 2024-04-25 13:20:19 +10:00
crypto_api.h
defines.h
dh.c
dh.h
digest-libc.c
digest-openssl.c
digest.h
dispatch.c
dispatch.h
dns.c
dns.h
ed25519.c
ed25519.sh
entropy.c
entropy.h
fatal.c
fixalgorithms
fixpaths
groupaccess.c
groupaccess.h
gss-genr.c upstream: whitespace 2024-02-01 13:42:45 +11:00
gss-serv-krb5.c
gss-serv.c
hash.c
hmac.c
hmac.h
hostfile.c
hostfile.h
includes.h
install-sh
kex-names.c upstream: missing files from previous 2024-08-02 14:21:00 -04:00
kex.c start merge - not compiling 2024-07-24 10:25:43 -04:00
kex.h upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
kexc25519.c
kexdh.c
kexecdh.c
kexgen.c
kexgex.c
kexgexc.c
kexgexs.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
kexsntrup761x25519.c
krl.c
krl.h
log.c resolve merge conflict 2023-12-19 20:33:17 -05:00
log.h
loginrec.c
loginrec.h
logintest.c
mac.c
mac.h
match.c
match.h
mdoc2man.awk
misc.c start merge - not compiling 2024-07-24 10:25:43 -04:00
misc.h start merge - not compiling 2024-07-24 10:25:43 -04:00
mkinstalldirs
moduli upstream: Import regenerated moduli. 2024-03-26 13:03:00 +11:00
moduli.5
moduli.c
monitor.c start merge - not compiling 2024-07-24 10:25:43 -04:00
monitor.h start merge - not compiling 2024-07-24 10:25:43 -04:00
monitor_fdpass.c
monitor_fdpass.h
monitor_wrap.c start merge - not compiling 2024-07-24 10:25:43 -04:00
monitor_wrap.h upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
msg.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
msg.h
mux.c
myproposal.h
nchan.c upstream: whitespace 2024-02-01 13:42:45 +11:00
nchan.ms
nchan2.ms
openssh.xml.in
opensshd.init.in
packet.c start merge - not compiling 2024-07-24 10:25:43 -04:00
packet.h upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
pal_doexec.h
pathnames.h start merge - not compiling 2024-07-24 10:25:43 -04:00
pkcs11.h
platform-misc.c
platform-pledge.c
platform-tracing.c
platform.c start merge - not compiling 2024-07-24 10:25:43 -04:00
platform.h notify systemd on listen and reload 2024-04-03 14:40:32 +11:00
poly1305.c
poly1305.h
progressmeter.c
progressmeter.h
readconf.c fix merge conflict 2024-03-04 12:13:33 -05:00
readconf.h upstream: Separate parsing of string array options from applying them 2024-03-04 14:46:46 +11:00
readpass.c start merge - not compiling 2024-07-24 10:25:43 -04:00
rijndael.c
rijndael.h
sandbox-capsicum.c
sandbox-darwin.c
sandbox-null.c
sandbox-pledge.c
sandbox-rlimit.c
sandbox-seccomp-filter.c
sandbox-solaris.c
sandbox-systrace.c
scp.1
scp.c resolve merge conflict 2023-12-19 20:33:17 -05:00
servconf.c start merge - not compiling 2024-07-24 10:25:43 -04:00
servconf.h upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
serverloop.c upstream: Start the process of splitting sshd into separate 2024-05-17 14:41:35 +10:00
serverloop.h
session.c start merge - not compiling 2024-07-24 10:25:43 -04:00
session.h
sftp-client.c resolve merge conflict 2023-12-19 20:33:17 -05:00
sftp-client.h
sftp-common.c
sftp-common.h
sftp-glob.c
sftp-realpath.c
sftp-server-main.c
sftp-server.8
sftp-server.c start merge - not compiling 2024-07-24 10:25:43 -04:00
sftp-usergroup.c
sftp-usergroup.h
sftp.1
sftp.c start merge - not compiling 2024-07-24 10:25:43 -04:00
sftp.h
sk-api.h
sk-usbhid.c
smult_curve25519_ref.c
sntrup761.c
sntrup761.sh
srclimit.c
srclimit.h
ssh-add.1 upstream: sort -C, and add to usage(); ok djm 2024-01-08 13:25:20 +11:00
ssh-add.c Merge remote-tracking branch 'upstrem-bsd/master' into sync-with-upstream-2 2024-01-22 11:09:08 -05:00
ssh-agent.1
ssh-agent.c upstream: avoid logging in signal handler by converting mainloop to 2024-03-09 16:13:57 +11:00
ssh-dss.c upstream: make DSA key support compile-time optional, defaulting to 2024-01-11 15:46:22 +11:00
ssh-ecdsa-sk.c
ssh-ecdsa.c
ssh-ed25519-sk.c
ssh-ed25519.c
ssh-gss.h
ssh-keygen.1
ssh-keygen.c Merge remote-tracking branch 'upstrem-bsd/master' into sync-with-upstream-2 2024-01-22 11:09:08 -05:00
ssh-keyscan.1
ssh-keyscan.c upstream: remove SSH1 leftovers 2024-05-08 14:57:48 +10:00
ssh-keysign.8
ssh-keysign.c upstream: stricter validation of messaging socket fd number; disallow 2024-04-30 15:53:26 +10:00
ssh-pkcs11-client.c fix merge conflicts 2024-01-08 16:05:29 -05:00
ssh-pkcs11-helper.8
ssh-pkcs11-helper.c
ssh-pkcs11.c upstream: Oops, incorrect hex conversion spotted by claudio. 2024-04-30 12:16:54 +10:00
ssh-pkcs11.h resolve merge conflict 2023-12-19 20:33:17 -05:00
ssh-rsa.c
ssh-sandbox.h
ssh-sk-client.c
ssh-sk-helper.8
ssh-sk-helper.c
ssh-sk.c
ssh-sk.h
ssh-xmss.c
ssh.1 upstream: Clarify how literal IPv6 addresses can be used in -J mode 2024-03-26 13:02:27 +11:00
ssh.c Merge remote-tracking branch 'upstrem-bsd/master' into sync-with-upstream-2 2024-01-22 11:09:08 -05:00
ssh.h
ssh2.h
ssh_api.c start merge - not compiling 2024-07-24 10:25:43 -04:00
ssh_api.h
ssh_config
ssh_config.5 upstream: fix typo in match directive predicate (s/tagged/tag) GHPR#462 2024-02-21 17:01:37 +11:00
sshbuf-getput-basic.c
sshbuf-getput-crypto.c upstream: whitespace 2024-02-01 13:42:45 +11:00
sshbuf-io.c
sshbuf-misc.c
sshbuf.c
sshbuf.h
sshconnect.c start merge - not compiling 2024-07-24 10:25:43 -04:00
sshconnect.h upstream: add explict check for server hostkey type against 2024-04-30 12:22:35 +10:00
sshconnect2.c fix merge conflicts 2024-01-08 16:05:29 -05:00
sshd-common.c start merge - not compiling 2024-07-24 10:25:43 -04:00
sshd-common.h start merge - not compiling 2024-07-24 10:25:43 -04:00
sshd-session.c continue merge - not compiling 2024-08-02 14:20:51 -04:00
sshd.8
sshd.c continue merge - not compiling 2024-08-02 14:20:51 -04:00
sshd_config
sshd_config.5 upstream: explain arguments of internal-sftp GHPR#454 from Niklas 2024-02-21 17:18:02 +11:00
ssherr.c
ssherr.h
sshfileperm.h
sshkey-xmss.c
sshkey-xmss.h
sshkey.c Merge remote-tracking branch 'upstrem-bsd/master' into sync-with-upstream-2 2024-01-22 11:09:08 -05:00
sshkey.h
sshlogin.c
sshlogin.h
sshpty.c
sshpty.h
sshsig.c fix merge conflict 2024-03-11 11:46:39 -04:00
sshsig.h
sshtty.c
survey.sh.in
ttymodes.c
ttymodes.h
uidswap.c
uidswap.h
umac.c
umac.h
umac128.c
utf8.c
utf8.h
version.h fix merge conflict 2024-03-11 11:46:39 -04:00
xmalloc.c
xmalloc.h
xmss_commons.c
xmss_commons.h
xmss_fast.c
xmss_fast.h
xmss_hash.c upstream: spelling; ok markus@ 2024-01-08 13:25:21 +11:00
xmss_hash.h
xmss_hash_address.c
xmss_hash_address.h
xmss_wots.c
xmss_wots.h

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.

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 openssh@openssh.com.