freebsd-src/crypto/openssh
Dag-Erling Smørgrav 5818b6ee55 openssh: Don't attempt to connect to unsupported addresses
When iterating over known addresses for the requested target host name,
skip those that are not supported by the running kernel.

MFC after:	1 week
PR:		195231
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D53588
2025-11-21 07:28:24 +01:00
..
.github OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
contrib OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
m4 openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
openbsd-compat OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
regress OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
.depend OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
.git_allowed_signers OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
.git_allowed_signers.asc openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
.gitignore OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
.skipped-commit-ids OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
aclocal.m4 ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
addr.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
addr.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
addrmatch.c
atomicio.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
atomicio.h
audit-bsm.c
audit-linux.c
audit.c
audit.h
auth-bsdauth.c
auth-krb5.c
auth-options.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
auth-options.h
auth-pam.c blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
auth-pam.h openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth-passwd.c
auth-rhosts.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth-shadow.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
auth-sia.c
auth-sia.h
auth.c blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
auth.h openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-chall.c
auth2-gss.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-hostbased.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-kbdint.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-methods.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-none.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-passwd.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
auth2-pubkey.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
auth2-pubkeyfile.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
auth2.c openssh: blocklist: Use NetBSD probes 2025-09-29 16:32:36 +00:00
authfd.c ssh: Update to OpenSSH 9.6p1 2024-01-04 22:16:30 -05:00
authfd.h ssh: Update to OpenSSH 9.6p1 2024-01-04 22:16:30 -05:00
authfile.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
authfile.h
bitmap.c
bitmap.h
blocklist.c blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
blocklist_client.h blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
buildpkg.sh.in OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
canohost.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
canohost.h
chacha.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
chacha.h
ChangeLog OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
channels.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
channels.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
cipher-aes.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
cipher-aesctr.c
cipher-aesctr.h
cipher-chachapoly-libcrypto.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
cipher-chachapoly.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
cipher-chachapoly.h
cipher.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
cipher.h ssh: Update to OpenSSH 9.6p1 2024-01-04 22:16:30 -05:00
cleanup.c
clientloop.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
clientloop.h openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
compat.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
compat.h ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
config.guess ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
config.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
config.sub ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
configure.ac OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
CREDITS
crypto_api.h openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
defines.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
dh.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
dh.h
digest-libc.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
digest-openssl.c
digest.h
dispatch.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
dispatch.h
dns.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
dns.h ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
ed25519.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
ed25519.sh openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
entropy.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
entropy.h
fatal.c
fixalgorithms
fixpaths
freebsd-configure.sh ssh: drop $FreeBSD$ from crypto/openssh 2022-04-22 19:12:23 -04:00
freebsd-namespace.sh ssh: drop $FreeBSD$ from crypto/openssh 2022-04-22 19:12:23 -04:00
FREEBSD-upgrade openssh: Don't attempt to connect to unsupported addresses 2025-11-21 07:28:24 +01:00
groupaccess.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
groupaccess.h
gss-genr.c ssh: Update to OpenSSH 9.7p1 2024-03-18 10:00:57 -04:00
gss-serv-krb5.c
gss-serv.c openssh: Update to 9.9p2 2025-02-19 19:33:38 +00:00
hash.c
hmac.c
hmac.h
hostfile.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
hostfile.h
includes.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
INSTALL OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
install-sh ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
kex-names.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
kex.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
kex.h openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
kexc25519.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
kexdh.c
kexecdh.c
kexgen.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
kexgex.c
kexgexc.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
kexgexs.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
kexmlkem768x25519.c openssh: Update to 9.9p2 2025-02-19 19:33:38 +00:00
kexsntrup761x25519.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
krb5_config.h openssh: Support building with MIT KRB5 2025-06-15 19:49:36 -07:00
krl.c ssh: Fix cases where error codes were not correctly set 2025-02-19 07:25:55 -05:00
krl.h ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
libcrux_mlkem768_sha3.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
LICENCE openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
log.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
log.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
loginrec.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
loginrec.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
logintest.c
mac.c
mac.h
Makefile.in OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
match.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
match.h
mdoc2man.awk OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
misc.c openssh: Handle localtime_r() failure by return "UNKNOWN-TIME" 2025-10-31 13:08:45 -04:00
misc.h openssh: Update to 9.9p2 2025-02-19 19:33:38 +00:00
mkinstalldirs
mlkem768.sh OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
moduli OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
moduli.5 ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
moduli.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
monitor.c blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
monitor.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
monitor_fdpass.c
monitor_fdpass.h
monitor_wrap.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
monitor_wrap.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
msg.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
msg.h
mux.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
myproposal.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
nchan.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
nchan.ms
nchan2.ms
openssh.xml.in
opensshd.init.in
OVERVIEW
packet.c openssh: blocklist: Use NetBSD probes 2025-09-29 16:32:36 +00:00
packet.h openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
pathnames.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
pkcs11.h
platform-listen.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
platform-misc.c
platform-pledge.c
platform-tracing.c ssh: update comment text to match upstream 2022-11-09 11:32:47 -05:00
platform.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
platform.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
poly1305.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
poly1305.h
progressmeter.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
progressmeter.h
PROTOCOL ssh: Update to OpenSSH 9.7p1 2024-03-18 10:00:57 -04:00
PROTOCOL.agent OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
PROTOCOL.certkeys OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
PROTOCOL.chacha20poly1305
PROTOCOL.key openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
PROTOCOL.krl ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
PROTOCOL.mux ssh: Update to OpenSSH 9.7p1 2024-03-18 10:00:57 -04:00
PROTOCOL.sshsig
PROTOCOL.u2f
readconf.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
readconf.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
README OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
README.dns
README.md OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
README.platform ssh: Update to OpenSSH 9.7p1 2024-03-18 10:00:57 -04:00
README.privsep
README.tun
readpass.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
rijndael.c
rijndael.h ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
sandbox-capsicum.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sandbox-darwin.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sandbox-null.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sandbox-rlimit.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sandbox-seccomp-filter.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sandbox-solaris.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
scp.1 OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
scp.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
SECURITY.md ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
servconf.c blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
servconf.h blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
serverloop.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
serverloop.h
session.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
session.h ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
sftp-client.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sftp-client.h ssh: Update to OpenSSH 9.5p1 2023-10-09 13:28:17 -04:00
sftp-common.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
sftp-common.h ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
sftp-glob.c ssh: Update to OpenSSH 9.5p1 2023-10-09 13:28:17 -04:00
sftp-realpath.c
sftp-server-main.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
sftp-server.8
sftp-server.c openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
sftp-usergroup.c ssh: Update to OpenSSH 9.5p1 2023-10-09 13:28:17 -04:00
sftp-usergroup.h ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
sftp.1 OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sftp.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sftp.h
sk-api.h ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
sk-usbhid.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sk_config.h ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
smult_curve25519_ref.c
sntrup761.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
sntrup761.sh openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
srclimit.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
srclimit.h openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-add.1 openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
ssh-add.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-agent.1 OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-agent.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-dss.c ssh: Update to OpenSSH 9.7p1 2024-03-18 10:00:57 -04:00
ssh-ecdsa-sk.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-ecdsa.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-ed25519-sk.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
ssh-ed25519.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
ssh-gss.h openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
ssh-keygen.1 OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-keygen.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-keyscan.1 openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
ssh-keyscan.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-keysign.8 openssh: Update to 9.8p1 2025-02-19 17:20:44 +00:00
ssh-keysign.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-pkcs11-client.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-pkcs11-helper.8 ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
ssh-pkcs11-helper.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-pkcs11.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-pkcs11.h ssh: Update to OpenSSH 9.6p1 2024-01-04 22:16:30 -05:00
ssh-rsa.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-sandbox.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh-sk-client.c ssh: Fix cases where error codes were not correctly set 2025-02-19 07:25:55 -05:00
ssh-sk-helper.8 ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
ssh-sk-helper.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
ssh-sk.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
ssh-sk.h ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
ssh-xmss.c ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
ssh.1 OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh2.h ssh: Update to OpenSSH 9.6p1 2024-01-04 22:16:30 -05:00
ssh_api.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh_api.h
ssh_config ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
ssh_config.5 OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
ssh_namespace.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshbuf-getput-basic.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
sshbuf-getput-crypto.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
sshbuf-io.c
sshbuf-misc.c ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
sshbuf.c openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
sshbuf.h openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
sshconnect.c openssh: Don't attempt to connect to unsupported addresses 2025-11-21 07:28:24 +01:00
sshconnect.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshconnect2.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshd-auth.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshd-debug.sh OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshd-session.c openssh: blocklist: Remove non async-signal safe probe 2025-10-15 13:31:44 +00:00
sshd.8 openssh: Update to 9.9p1 2025-02-19 19:08:59 +00:00
sshd.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshd_config blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
sshd_config.5 blocklist: Rename blacklist to blocklist 2025-10-12 17:14:27 +00:00
ssherr.c
ssherr.h
sshkey-xmss.c ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
sshkey-xmss.h ssh: update to OpenSSH 9.2p1 2023-02-06 16:54:56 -05:00
sshkey.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshkey.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshlogin.c ssh: update to OpenSSH 9.1p1 2022-10-19 10:27:11 -04:00
sshlogin.h
sshpty.c
sshpty.h
sshsig.c OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
sshsig.h ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
sshtty.c
survey.sh.in
TODO
ttymodes.c
ttymodes.h
uidswap.c Revert "ssh: sshd-session: properly save off the privileged gid" 2025-08-15 08:17:58 -05:00
uidswap.h
umac.c ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
umac.h ssh: update to OpenSSH v8.9p1 2022-04-13 16:00:56 -04:00
umac128.c ssh: drop $FreeBSD$ from crypto/openssh 2022-04-22 19:12:23 -04:00
utf8.c
utf8.h
version.h OpenSSH: Update to 10.0p2 2025-08-26 15:04:16 -04:00
xmalloc.c ssh: update to OpenSSH v9.0p1 2022-04-15 10:41:08 -04:00
xmalloc.h
xmss_commons.c
xmss_commons.h
xmss_fast.c
xmss_fast.h
xmss_hash.c ssh: Update to OpenSSH 9.7p1 2024-03-18 10:00:57 -04:00
xmss_hash.h
xmss_hash_address.c
xmss_hash_address.h
xmss_wots.c
xmss_wots.h

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

Release tarballs and release branches in git 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 the git master branch, 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.