djm@openbsd.org 816036f142 | 4 years ago | |
---|---|---|
.github | 4 years ago | |
contrib | 4 years ago | |
m4 | 4 years ago | |
openbsd-compat | 4 years ago | |
regress | 4 years ago | |
.depend | 4 years ago | |
.gitignore | 4 years ago | |
.skipped-commit-ids | 4 years ago | |
CREDITS | 5 years ago | |
INSTALL | 4 years ago | |
LICENCE | 4 years ago | |
Makefile.in | 4 years ago | |
OVERVIEW | 6 years ago | |
PROTOCOL | 4 years ago | |
PROTOCOL.agent | 4 years ago | |
PROTOCOL.certkeys | 5 years ago | |
PROTOCOL.chacha20poly1305 | 4 years ago | |
PROTOCOL.key | 11 years ago | |
PROTOCOL.krl | 6 years ago | |
PROTOCOL.mux | 4 years ago | |
PROTOCOL.sshsig | 4 years ago | |
PROTOCOL.u2f | 4 years ago | |
README | 4 years ago | |
README.dns | 4 years ago | |
README.md | 4 years ago | |
README.platform | 6 years ago | |
README.privsep | 5 years ago | |
README.tun | 18 years ago | |
TODO | 6 years ago | |
addrmatch.c | 4 years ago | |
atomicio.c | 5 years ago | |
atomicio.h | 5 years ago | |
audit-bsm.c | 5 years ago | |
audit-linux.c | 5 years ago | |
audit.c | 5 years ago | |
audit.h | 5 years ago | |
auth-bsdauth.c | 5 years ago | |
auth-krb5.c | 6 years ago | |
auth-options.c | 4 years ago | |
auth-options.h | 4 years ago | |
auth-pam.c | 4 years ago | |
auth-pam.h | 5 years ago | |
auth-passwd.c | 4 years ago | |
auth-rhosts.c | 4 years ago | |
auth-shadow.c | 6 years ago | |
auth-sia.c | 6 years ago | |
auth-sia.h | 19 years ago | |
auth.c | 4 years ago | |
auth.h | 5 years ago | |
auth2-chall.c | 4 years ago | |
auth2-gss.c | 4 years ago | |
auth2-hostbased.c | 4 years ago | |
auth2-kbdint.c | 4 years ago | |
auth2-none.c | 4 years ago | |
auth2-passwd.c | 4 years ago | |
auth2-pubkey.c | 4 years ago | |
auth2.c | 4 years ago | |
authfd.c | 4 years ago | |
authfd.h | 4 years ago | |
authfile.c | 4 years ago | |
authfile.h | 4 years ago | |
bitmap.c | 7 years ago | |
bitmap.h | 7 years ago | |
buildpkg.sh.in | 8 years ago | |
canohost.c | 4 years ago | |
canohost.h | 8 years ago | |
chacha.c | 11 years ago | |
chacha.h | 8 years ago | |
channels.c | 4 years ago | |
channels.h | 4 years ago | |
cipher-aes.c | 11 years ago | |
cipher-aesctr.c | 9 years ago | |
cipher-aesctr.h | 10 years ago | |
cipher-chachapoly-libcrypto.c | 4 years ago | |
cipher-chachapoly.c | 4 years ago | |
cipher-chachapoly.h | 4 years ago | |
cipher-ctr.c | 9 years ago | |
cipher.c | 4 years ago | |
cipher.h | 4 years ago | |
cleanup.c | 18 years ago | |
clientloop.c | 4 years ago | |
clientloop.h | 4 years ago | |
compat.c | 4 years ago | |
compat.h | 4 years ago | |
config.guess | 4 years ago | |
config.sub | 4 years ago | |
configure.ac | 4 years ago | |
crypto_api.h | 5 years ago | |
defines.h | 4 years ago | |
dh.c | 4 years ago | |
dh.h | 5 years ago | |
digest-libc.c | 4 years ago | |
digest-openssl.c | 4 years ago | |
digest.h | 7 years ago | |
dispatch.c | 5 years ago | |
dispatch.h | 5 years ago | |
dns.c | 4 years ago | |
dns.h | 6 years ago | |
ed25519.c | 11 years ago | |
entropy.c | 4 years ago | |
entropy.h | 6 years ago | |
fatal.c | 4 years ago | |
fe25519.c | 10 years ago | |
fe25519.h | 11 years ago | |
fixalgorithms | 11 years ago | |
fixpaths | 22 years ago | |
ge25519.c | 10 years ago | |
ge25519.h | 9 years ago | |
ge25519_base.data | 11 years ago | |
groupaccess.c | 5 years ago | |
groupaccess.h | 16 years ago | |
gss-genr.c | 4 years ago | |
gss-serv-krb5.c | 6 years ago | |
gss-serv.c | 4 years ago | |
hash.c | 5 years ago | |
hmac.c | 4 years ago | |
hmac.h | 10 years ago | |
hostfile.c | 4 years ago | |
hostfile.h | 4 years ago | |
includes.h | 7 years ago | |
install-sh | 7 years ago | |
kex.c | 4 years ago | |
kex.h | 4 years ago | |
kexc25519.c | 5 years ago | |
kexdh.c | 4 years ago | |
kexecdh.c | 5 years ago | |
kexgen.c | 5 years ago | |
kexgex.c | 5 years ago | |
kexgexc.c | 5 years ago | |
kexgexs.c | 5 years ago | |
kexsntrup4591761x25519.c | 5 years ago | |
krl.c | 4 years ago | |
krl.h | 4 years ago | |
log.c | 4 years ago | |
log.h | 4 years ago | |
loginrec.c | 4 years ago | |
loginrec.h | 5 years ago | |
logintest.c | 14 years ago | |
mac.c | 5 years ago | |
mac.h | 8 years ago | |
match.c | 4 years ago | |
match.h | 4 years ago | |
md5crypt.c | 6 years ago | |
md5crypt.h | 8 years ago | |
mdoc2man.awk | 6 years ago | |
misc.c | 4 years ago | |
misc.h | 4 years ago | |
mkinstalldirs | 6 years ago | |
moduli | 4 years ago | |
moduli.5 | 12 years ago | |
moduli.c | 5 years ago | |
monitor.c | 4 years ago | |
monitor.h | 5 years ago | |
monitor_fdpass.c | 4 years ago | |
monitor_fdpass.h | 17 years ago | |
monitor_wrap.c | 4 years ago | |
monitor_wrap.h | 4 years ago | |
msg.c | 4 years ago | |
msg.h | 9 years ago | |
mux.c | 4 years ago | |
myproposal.h | 4 years ago | |
nchan.c | 4 years ago | |
nchan.ms | 21 years ago | |
nchan2.ms | 16 years ago | |
openssh.xml.in | 17 years ago | |
opensshd.init.in | 7 years ago | |
packet.c | 4 years ago | |
packet.h | 4 years ago | |
pathnames.h | 5 years ago | |
pkcs11.h | 11 years ago | |
platform-misc.c | 7 years ago | |
platform-pledge.c | 8 years ago | |
platform-tracing.c | 8 years ago | |
platform.c | 5 years ago | |
platform.h | 8 years ago | |
poly1305.c | 10 years ago | |
poly1305.h | 10 years ago | |
progressmeter.c | 4 years ago | |
progressmeter.h | 5 years ago | |
readconf.c | 4 years ago | |
readconf.h | 4 years ago | |
readpass.c | 4 years ago | |
rijndael.c | 9 years ago | |
rijndael.h | 10 years ago | |
sandbox-capsicum.c | 7 years ago | |
sandbox-darwin.c | 4 years ago | |
sandbox-null.c | 10 years ago | |
sandbox-pledge.c | 4 years ago | |
sandbox-rlimit.c | 4 years ago | |
sandbox-seccomp-filter.c | 4 years ago | |
sandbox-solaris.c | 7 years ago | |
sandbox-systrace.c | 4 years ago | |
sc25519.c | 10 years ago | |
sc25519.h | 11 years ago | |
scp.1 | 4 years ago | |
scp.c | 4 years ago | |
servconf.c | 4 years ago | |
servconf.h | 4 years ago | |
serverloop.c | 4 years ago | |
serverloop.h | 7 years ago | |
session.c | 4 years ago | |
session.h | 6 years ago | |
sftp-client.c | 4 years ago | |
sftp-client.h | 5 years ago | |
sftp-common.c | 4 years ago | |
sftp-common.h | 9 years ago | |
sftp-glob.c | 5 years ago | |
sftp-realpath.c | 5 years ago | |
sftp-server-main.c | 5 years ago | |
sftp-server.8 | 4 years ago | |
sftp-server.c | 4 years ago | |
sftp.1 | 4 years ago | |
sftp.c | 4 years ago | |
sftp.h | 16 years ago | |
sk-api.h | 4 years ago | |
sk-usbhid.c | 4 years ago | |
smult_curve25519_ref.c | 11 years ago | |
sntrup4591761.c | 5 years ago | |
sntrup4591761.sh | 5 years ago | |
ssh-add.1 | 4 years ago | |
ssh-add.c | 4 years ago | |
ssh-agent.1 | 4 years ago | |
ssh-agent.c | 4 years ago | |
ssh-dss.c | 4 years ago | |
ssh-ecdsa-sk.c | 4 years ago | |
ssh-ecdsa.c | 5 years ago | |
ssh-ed25519-sk.c | 4 years ago | |
ssh-ed25519.c | 4 years ago | |
ssh-gss.h | 6 years ago | |
ssh-keygen.1 | 4 years ago | |
ssh-keygen.c | 4 years ago | |
ssh-keyscan.1 | 4 years ago | |
ssh-keyscan.c | 4 years ago | |
ssh-keysign.8 | 4 years ago | |
ssh-keysign.c | 4 years ago | |
ssh-pkcs11-client.c | 4 years ago | |
ssh-pkcs11-helper.8 | 4 years ago | |
ssh-pkcs11-helper.c | 4 years ago | |
ssh-pkcs11.c | 4 years ago | |
ssh-pkcs11.h | 4 years ago | |
ssh-rsa.c | 6 years ago | |
ssh-sandbox.h | 10 years ago | |
ssh-sk-client.c | 4 years ago | |
ssh-sk-helper.8 | 4 years ago | |
ssh-sk-helper.c | 4 years ago | |
ssh-sk.c | 4 years ago | |
ssh-sk.h | 4 years ago | |
ssh-xmss.c | 4 years ago | |
ssh.1 | 4 years ago | |
ssh.c | 4 years ago | |
ssh.h | 4 years ago | |
ssh2.h | 8 years ago | |
ssh_api.c | 4 years ago | |
ssh_api.h | 6 years ago | |
ssh_config | 4 years ago | |
ssh_config.5 | 4 years ago | |
sshbuf-getput-basic.c | 4 years ago | |
sshbuf-getput-crypto.c | 5 years ago | |
sshbuf-io.c | 4 years ago | |
sshbuf-misc.c | 4 years ago | |
sshbuf.c | 4 years ago | |
sshbuf.h | 4 years ago | |
sshconnect.c | 4 years ago | |
sshconnect.h | 4 years ago | |
sshconnect2.c | 4 years ago | |
sshd.8 | 4 years ago | |
sshd.c | 4 years ago | |
sshd_config | 6 years ago | |
sshd_config.5 | 4 years ago | |
ssherr.c | 4 years ago | |
ssherr.h | 4 years ago | |
sshkey-xmss.c | 5 years ago | |
sshkey-xmss.h | 6 years ago | |
sshkey.c | 4 years ago | |
sshkey.h | 4 years ago | |
sshlogin.c | 4 years ago | |
sshlogin.h | 11 years ago | |
sshpty.c | 5 years ago | |
sshpty.h | 8 years ago | |
sshsig.c | 4 years ago | |
sshsig.h | 4 years ago | |
sshtty.c | 15 years ago | |
survey.sh.in | 20 years ago | |
ttymodes.c | 4 years ago | |
ttymodes.h | 7 years ago | |
uidswap.c | 5 years ago | |
uidswap.h | 6 years ago | |
umac.c | 4 years ago | |
umac.h | 5 years ago | |
umac128.c | 6 years ago | |
utf8.c | 4 years ago | |
utf8.h | 4 years ago | |
verify.c | 10 years ago | |
version.h | 4 years ago | |
xmalloc.c | 5 years ago | |
xmalloc.h | 5 years ago | |
xmss_commons.c | 5 years ago | |
xmss_commons.h | 6 years ago | |
xmss_fast.c | 5 years ago | |
xmss_fast.h | 6 years ago | |
xmss_hash.c | 5 years ago | |
xmss_hash.h | 6 years ago | |
xmss_hash_address.c | 5 years ago | |
xmss_hash_address.h | 6 years ago | |
xmss_wots.c | 5 years ago | |
xmss_wots.h | 6 years ago |
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).
The official documentation for OpenSSH are the man pages for each tool:
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.
Portable OpenSSH is built using autoconf and make. It requires a working C compiler, standard library and headers, and zlib. libcrypto
from either LibreSSL or OpenSSL may also be used, but OpenSSH may be built without it supporting a subset of crypto algorithms.
FIDO security token support need libfido2 and its dependencies. Also, certain platforms and build-time options may require additional dependencies, see README.platform for details.
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.
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
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. |
--with-security-key-builtin |
Include built-in support for U2F/FIDO2 security keys. This requires libfido2 be installed. |
Portable OpenSSH development is discussed on the openssh-unix-dev mailing list (archive mirror). Bugs and feature requests are tracked on our Bugzilla.
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.