You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker 7ee447c011
v811_spc009_project
4 months ago
..
contrib v811_spc009_project 4 months ago
openbsd-compat v811_spc009_project 4 months ago
prebuilt-intermediates v811_spc009_project 4 months ago
regress v811_spc009_project 4 months ago
.depend v811_spc009_project 4 months ago
.skipped-commit-ids v811_spc009_project 4 months ago
Android.bp v811_spc009_project 4 months ago
CREDITS v811_spc009_project 4 months ago
INSTALL v811_spc009_project 4 months ago
LICENCE v811_spc009_project 4 months ago
METADATA v811_spc009_project 4 months ago
Makefile.in v811_spc009_project 4 months ago
OVERVIEW v811_spc009_project 4 months ago
OWNERS v811_spc009_project 4 months ago
PROTOCOL v811_spc009_project 4 months ago
PROTOCOL.agent v811_spc009_project 4 months ago
PROTOCOL.certkeys v811_spc009_project 4 months ago
PROTOCOL.chacha20poly1305 v811_spc009_project 4 months ago
PROTOCOL.key v811_spc009_project 4 months ago
PROTOCOL.krl v811_spc009_project 4 months ago
PROTOCOL.mux v811_spc009_project 4 months ago
PROTOCOL.sshsig v811_spc009_project 4 months ago
PROTOCOL.u2f v811_spc009_project 4 months ago
README v811_spc009_project 4 months ago
README.dns v811_spc009_project 4 months ago
README.md v811_spc009_project 4 months ago
README.platform v811_spc009_project 4 months ago
README.privsep v811_spc009_project 4 months ago
README.tun v811_spc009_project 4 months ago
README.version v811_spc009_project 4 months ago
TODO v811_spc009_project 4 months ago
aclocal.m4 v811_spc009_project 4 months ago
addrmatch.c v811_spc009_project 4 months ago
atomicio.c v811_spc009_project 4 months ago
atomicio.h v811_spc009_project 4 months ago
audit-bsm.c v811_spc009_project 4 months ago
audit-linux.c v811_spc009_project 4 months ago
audit.c v811_spc009_project 4 months ago
audit.h v811_spc009_project 4 months ago
auth-bsdauth.c v811_spc009_project 4 months ago
auth-krb5.c v811_spc009_project 4 months ago
auth-options.c v811_spc009_project 4 months ago
auth-options.h v811_spc009_project 4 months ago
auth-pam.c v811_spc009_project 4 months ago
auth-pam.h v811_spc009_project 4 months ago
auth-passwd.c v811_spc009_project 4 months ago
auth-rhosts.c v811_spc009_project 4 months ago
auth-shadow.c v811_spc009_project 4 months ago
auth-sia.c v811_spc009_project 4 months ago
auth-sia.h v811_spc009_project 4 months ago
auth.c v811_spc009_project 4 months ago
auth.h v811_spc009_project 4 months ago
auth2-chall.c v811_spc009_project 4 months ago
auth2-gss.c v811_spc009_project 4 months ago
auth2-hostbased.c v811_spc009_project 4 months ago
auth2-kbdint.c v811_spc009_project 4 months ago
auth2-none.c v811_spc009_project 4 months ago
auth2-passwd.c v811_spc009_project 4 months ago
auth2-pubkey.c v811_spc009_project 4 months ago
auth2.c v811_spc009_project 4 months ago
authfd.c v811_spc009_project 4 months ago
authfd.h v811_spc009_project 4 months ago
authfile.c v811_spc009_project 4 months ago
authfile.h v811_spc009_project 4 months ago
bitmap.c v811_spc009_project 4 months ago
bitmap.h v811_spc009_project 4 months ago
buildpkg.sh.in v811_spc009_project 4 months ago
canohost.c v811_spc009_project 4 months ago
canohost.h v811_spc009_project 4 months ago
chacha.c v811_spc009_project 4 months ago
chacha.h v811_spc009_project 4 months ago
channels.c v811_spc009_project 4 months ago
channels.h v811_spc009_project 4 months ago
cipher-aes.c v811_spc009_project 4 months ago
cipher-aesctr.c v811_spc009_project 4 months ago
cipher-aesctr.h v811_spc009_project 4 months ago
cipher-chachapoly-libcrypto.c v811_spc009_project 4 months ago
cipher-chachapoly.c v811_spc009_project 4 months ago
cipher-chachapoly.h v811_spc009_project 4 months ago
cipher-ctr.c v811_spc009_project 4 months ago
cipher.c v811_spc009_project 4 months ago
cipher.h v811_spc009_project 4 months ago
cleanup.c v811_spc009_project 4 months ago
clientloop.c v811_spc009_project 4 months ago
clientloop.h v811_spc009_project 4 months ago
compat.c v811_spc009_project 4 months ago
compat.h v811_spc009_project 4 months ago
config.guess v811_spc009_project 4 months ago
config.sub v811_spc009_project 4 months ago
configure.ac v811_spc009_project 4 months ago
crypto_api.h v811_spc009_project 4 months ago
defines.h v811_spc009_project 4 months ago
dh.c v811_spc009_project 4 months ago
dh.h v811_spc009_project 4 months ago
digest-libc.c v811_spc009_project 4 months ago
digest-openssl.c v811_spc009_project 4 months ago
digest.h v811_spc009_project 4 months ago
dispatch.c v811_spc009_project 4 months ago
dispatch.h v811_spc009_project 4 months ago
dns.c v811_spc009_project 4 months ago
dns.h v811_spc009_project 4 months ago
ed25519.c v811_spc009_project 4 months ago
entropy.c v811_spc009_project 4 months ago
entropy.h v811_spc009_project 4 months ago
fatal.c v811_spc009_project 4 months ago
fe25519.c v811_spc009_project 4 months ago
fe25519.h v811_spc009_project 4 months ago
fixalgorithms v811_spc009_project 4 months ago
fixpaths v811_spc009_project 4 months ago
ge25519.c v811_spc009_project 4 months ago
ge25519.h v811_spc009_project 4 months ago
ge25519_base.data v811_spc009_project 4 months ago
groupaccess.c v811_spc009_project 4 months ago
groupaccess.h v811_spc009_project 4 months ago
gss-genr.c v811_spc009_project 4 months ago
gss-serv-krb5.c v811_spc009_project 4 months ago
gss-serv.c v811_spc009_project 4 months ago
hash.c v811_spc009_project 4 months ago
hmac.c v811_spc009_project 4 months ago
hmac.h v811_spc009_project 4 months ago
hostfile.c v811_spc009_project 4 months ago
hostfile.h v811_spc009_project 4 months ago
includes.h v811_spc009_project 4 months ago
install-sh v811_spc009_project 4 months ago
kex.c v811_spc009_project 4 months ago
kex.h v811_spc009_project 4 months ago
kexc25519.c v811_spc009_project 4 months ago
kexdh.c v811_spc009_project 4 months ago
kexecdh.c v811_spc009_project 4 months ago
kexgen.c v811_spc009_project 4 months ago
kexgex.c v811_spc009_project 4 months ago
kexgexc.c v811_spc009_project 4 months ago
kexgexs.c v811_spc009_project 4 months ago
kexsntrup4591761x25519.c v811_spc009_project 4 months ago
krl.c v811_spc009_project 4 months ago
krl.h v811_spc009_project 4 months ago
log.c v811_spc009_project 4 months ago
log.h v811_spc009_project 4 months ago
loginrec.c v811_spc009_project 4 months ago
loginrec.h v811_spc009_project 4 months ago
logintest.c v811_spc009_project 4 months ago
mac.c v811_spc009_project 4 months ago
mac.h v811_spc009_project 4 months ago
match.c v811_spc009_project 4 months ago
match.h v811_spc009_project 4 months ago
md5crypt.c v811_spc009_project 4 months ago
md5crypt.h v811_spc009_project 4 months ago
mdoc2man.awk v811_spc009_project 4 months ago
misc.c v811_spc009_project 4 months ago
misc.h v811_spc009_project 4 months ago
mkinstalldirs v811_spc009_project 4 months ago
moduli v811_spc009_project 4 months ago
moduli.5 v811_spc009_project 4 months ago
moduli.c v811_spc009_project 4 months ago
monitor.c v811_spc009_project 4 months ago
monitor.h v811_spc009_project 4 months ago
monitor_fdpass.c v811_spc009_project 4 months ago
monitor_fdpass.h v811_spc009_project 4 months ago
monitor_wrap.c v811_spc009_project 4 months ago
monitor_wrap.h v811_spc009_project 4 months ago
msg.c v811_spc009_project 4 months ago
msg.h v811_spc009_project 4 months ago
mux.c v811_spc009_project 4 months ago
myproposal.h v811_spc009_project 4 months ago
nchan.c v811_spc009_project 4 months ago
nchan.ms v811_spc009_project 4 months ago
nchan2.ms v811_spc009_project 4 months ago
openssh.xml.in v811_spc009_project 4 months ago
opensshd.init.in v811_spc009_project 4 months ago
packet.c v811_spc009_project 4 months ago
packet.h v811_spc009_project 4 months ago
pathnames.h v811_spc009_project 4 months ago
pkcs11.h v811_spc009_project 4 months ago
platform-misc.c v811_spc009_project 4 months ago
platform-pledge.c v811_spc009_project 4 months ago
platform-tracing.c v811_spc009_project 4 months ago
platform.c v811_spc009_project 4 months ago
platform.h v811_spc009_project 4 months ago
poly1305.c v811_spc009_project 4 months ago
poly1305.h v811_spc009_project 4 months ago
progressmeter.c v811_spc009_project 4 months ago
progressmeter.h v811_spc009_project 4 months ago
readconf.c v811_spc009_project 4 months ago
readconf.h v811_spc009_project 4 months ago
readpass.c v811_spc009_project 4 months ago
rijndael.c v811_spc009_project 4 months ago
rijndael.h v811_spc009_project 4 months ago
sandbox-capsicum.c v811_spc009_project 4 months ago
sandbox-darwin.c v811_spc009_project 4 months ago
sandbox-null.c v811_spc009_project 4 months ago
sandbox-pledge.c v811_spc009_project 4 months ago
sandbox-rlimit.c v811_spc009_project 4 months ago
sandbox-seccomp-filter.c v811_spc009_project 4 months ago
sandbox-solaris.c v811_spc009_project 4 months ago
sandbox-systrace.c v811_spc009_project 4 months ago
sc25519.c v811_spc009_project 4 months ago
sc25519.h v811_spc009_project 4 months ago
scp.1 v811_spc009_project 4 months ago
scp.c v811_spc009_project 4 months ago
servconf.c v811_spc009_project 4 months ago
servconf.h v811_spc009_project 4 months ago
serverloop.c v811_spc009_project 4 months ago
serverloop.h v811_spc009_project 4 months ago
session.c v811_spc009_project 4 months ago
session.h v811_spc009_project 4 months ago
sftp-client.c v811_spc009_project 4 months ago
sftp-client.h v811_spc009_project 4 months ago
sftp-common.c v811_spc009_project 4 months ago
sftp-common.h v811_spc009_project 4 months ago
sftp-glob.c v811_spc009_project 4 months ago
sftp-realpath.c v811_spc009_project 4 months ago
sftp-server-main.c v811_spc009_project 4 months ago
sftp-server.8 v811_spc009_project 4 months ago
sftp-server.c v811_spc009_project 4 months ago
sftp.1 v811_spc009_project 4 months ago
sftp.c v811_spc009_project 4 months ago
sftp.h v811_spc009_project 4 months ago
sk-api.h v811_spc009_project 4 months ago
sk-usbhid.c v811_spc009_project 4 months ago
smult_curve25519_ref.c v811_spc009_project 4 months ago
sntrup4591761.c v811_spc009_project 4 months ago
sntrup4591761.sh v811_spc009_project 4 months ago
ssh-add.1 v811_spc009_project 4 months ago
ssh-add.c v811_spc009_project 4 months ago
ssh-agent.1 v811_spc009_project 4 months ago
ssh-agent.c v811_spc009_project 4 months ago
ssh-dss.c v811_spc009_project 4 months ago
ssh-ecdsa-sk.c v811_spc009_project 4 months ago
ssh-ecdsa.c v811_spc009_project 4 months ago
ssh-ed25519-sk.c v811_spc009_project 4 months ago
ssh-ed25519.c v811_spc009_project 4 months ago
ssh-gss.h v811_spc009_project 4 months ago
ssh-keygen.1 v811_spc009_project 4 months ago
ssh-keygen.c v811_spc009_project 4 months ago
ssh-keyscan.1 v811_spc009_project 4 months ago
ssh-keyscan.c v811_spc009_project 4 months ago
ssh-keysign.8 v811_spc009_project 4 months ago
ssh-keysign.c v811_spc009_project 4 months ago
ssh-pkcs11-client.c v811_spc009_project 4 months ago
ssh-pkcs11-helper.8 v811_spc009_project 4 months ago
ssh-pkcs11-helper.c v811_spc009_project 4 months ago
ssh-pkcs11.c v811_spc009_project 4 months ago
ssh-pkcs11.h v811_spc009_project 4 months ago
ssh-rsa.c v811_spc009_project 4 months ago
ssh-sandbox.h v811_spc009_project 4 months ago
ssh-sk-client.c v811_spc009_project 4 months ago
ssh-sk-helper.8 v811_spc009_project 4 months ago
ssh-sk-helper.c v811_spc009_project 4 months ago
ssh-sk.c v811_spc009_project 4 months ago
ssh-sk.h v811_spc009_project 4 months ago
ssh-xmss.c v811_spc009_project 4 months ago
ssh.1 v811_spc009_project 4 months ago
ssh.c v811_spc009_project 4 months ago
ssh.h v811_spc009_project 4 months ago
ssh2.h v811_spc009_project 4 months ago
ssh_api.c v811_spc009_project 4 months ago
ssh_api.h v811_spc009_project 4 months ago
ssh_config v811_spc009_project 4 months ago
ssh_config.5 v811_spc009_project 4 months ago
sshbuf-getput-basic.c v811_spc009_project 4 months ago
sshbuf-getput-crypto.c v811_spc009_project 4 months ago
sshbuf-io.c v811_spc009_project 4 months ago
sshbuf-misc.c v811_spc009_project 4 months ago
sshbuf.c v811_spc009_project 4 months ago
sshbuf.h v811_spc009_project 4 months ago
sshconnect.c v811_spc009_project 4 months ago
sshconnect.h v811_spc009_project 4 months ago
sshconnect2.c v811_spc009_project 4 months ago
sshd.8 v811_spc009_project 4 months ago
sshd.c v811_spc009_project 4 months ago
sshd_config v811_spc009_project 4 months ago
sshd_config.5 v811_spc009_project 4 months ago
sshd_config.android v811_spc009_project 4 months ago
ssherr.c v811_spc009_project 4 months ago
ssherr.h v811_spc009_project 4 months ago
sshkey-xmss.c v811_spc009_project 4 months ago
sshkey-xmss.h v811_spc009_project 4 months ago
sshkey.c v811_spc009_project 4 months ago
sshkey.h v811_spc009_project 4 months ago
sshlogin.c v811_spc009_project 4 months ago
sshlogin.h v811_spc009_project 4 months ago
sshpty.c v811_spc009_project 4 months ago
sshpty.h v811_spc009_project 4 months ago
sshsig.c v811_spc009_project 4 months ago
sshsig.h v811_spc009_project 4 months ago
sshtty.c v811_spc009_project 4 months ago
start-ssh v811_spc009_project 4 months ago
survey.sh.in v811_spc009_project 4 months ago
ttymodes.c v811_spc009_project 4 months ago
ttymodes.h v811_spc009_project 4 months ago
uidswap.c v811_spc009_project 4 months ago
uidswap.h v811_spc009_project 4 months ago
umac.c v811_spc009_project 4 months ago
umac.h v811_spc009_project 4 months ago
umac128.c v811_spc009_project 4 months ago
utf8.c v811_spc009_project 4 months ago
utf8.h v811_spc009_project 4 months ago
verify.c v811_spc009_project 4 months ago
version.h v811_spc009_project 4 months ago
xmalloc.c v811_spc009_project 4 months ago
xmalloc.h v811_spc009_project 4 months ago
xmss_commons.c v811_spc009_project 4 months ago
xmss_commons.h v811_spc009_project 4 months ago
xmss_fast.c v811_spc009_project 4 months ago
xmss_fast.h v811_spc009_project 4 months ago
xmss_hash.c v811_spc009_project 4 months ago
xmss_hash.h v811_spc009_project 4 months ago
xmss_hash_address.c v811_spc009_project 4 months ago
xmss_hash_address.h v811_spc009_project 4 months ago
xmss_wots.c v811_spc009_project 4 months ago
xmss_wots.h v811_spc009_project 4 months ago

README.md

Portable OpenSSH

Fuzzing 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, 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.

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.
--with-security-key-builtin Include built-in support for U2F/FIDO2 security keys. This requires libfido2 be installed.

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.