Since OpenSSH is developed by the OpenBSD group, OpenSSH is included in the base operating system, starting at OpenBSD release 2.6. So there's nothing to install or add to your system. However, due to newer features or other patches, you may wish to upgrade.
You can download the current OpenSSH release from these mirrors.
The following versions of OpenSSH are available for putting on your OpenBSD machines:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.9.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.9.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.8.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.8.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.7.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.7.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.6.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.6.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.5.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.5.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.4.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.4.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.3.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.3.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.2.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.2.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.1.tar.gz
If you are installing OpenSSH 9.1 on OpenBSD 7.0, then you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd70_9.1.patch
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.1.tar.gz # cd ssh # patch < /path/to/openbsd70_9.1.patch # if on OpenBSD 7.0 or 6.9 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.0.tar.gz
If you are installing OpenSSH 9.0 on OpenBSD 7.0 or 6.9, then you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd70_9.0.patch
# cd /usr/src/usr.bin # tar zxvf .../openssh-9.0.tar.gz # cd ssh # patch < /path/to/openbsd70_9.0.patch # if on OpenBSD 7.0 or 6.9 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.9.tar.gz
If you are installing OpenSSH 8.9 on OpenBSD 7.0 or 6.9, then you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd70_8.9.patch
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.9.tar.gz # cd ssh # patch < /path/to/openbsd70_8.9.patch # if on OpenBSD 7.0 or 6.9 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.8.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.8.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.7.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.7.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh # (optional)and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.6.tar.gz
If you are installing OpenSSH 8.6 on OpenBSD 6.7, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd67_8.6.patch
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.6.tar.gz # cd ssh # patch < /path/to/openbsd67_8.6.patch # if on OpenBSD 6.7 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.5.tar.gz
If you are installing OpenSSH 8.5 on OpenBSD 6.7, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd67_8.5.patch
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.5.tar.gz # cd ssh # patch < /path/to/openbsd67_8.5.patch # if on OpenBSD 6.7 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.4.tar.gz
If you are installing OpenSSH 8.4 on OpenBSD 6.6 or 6.7, you will
need one of the following patches:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd66_8.4.patch
(OpenBSD 6.6)
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd67_8.4.patch
(OpenBSD 6.7)
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.4.tar.gz # cd ssh # patch < /path/to/openbsd66_8.4.patch # if on OpenBSD 6.6 # patch < /path/to/openbsd67_8.4.patch # if on OpenBSD 6.7 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.3.tar.gz
If you are installing OpenSSH 8.3 on OpenBSD 6.6 or 6.5, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd66_8.3.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.3.tar.gz # patch -p1 < /path/to/openbsd66_8.3.patch # if on OpenBSD 6.6 or 6.5 # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.2.tar.gz
If you are installing OpenSSH 8.2 on OpenBSD 6.6 or 6.5, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd66_8.2.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.2.tar.gz # patch -p1 < /path/to/openbsd66_8.2.patch # if on OpenBSD 6.6 or 6.5 # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.1.tar.gz
If you are installing OpenSSH 8.1 on OpenBSD 6.4, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd64_8.1.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.1.tar.gz # patch -p1 < /path/to/openbsd64_8.1.patch # if on OpenBSD 6.4 # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-8.0.tar.gz
If you are installing OpenSSH 8.0 on OpenBSD 6.3, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd63_8.0.patch.
Users of OpenSSH 8.0 on OpenBSD 6.4, will need this patch instead:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd64_8.0.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-8.0.tar.gz # patch < /path/to/openbsd63_8.0.patch # if on OpenBSD 6.3 # patch < /path/to/openbsd64_8.0.patch # if on OpenBSD 6.4 # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/ssh
and restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.9.tar.gz
If you are installing OpenSSH 7.9 on OpenBSD 6.2 or 6.3, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd62_7,9.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-7,9.tar.gz # patch < /path/to/openbsd62_7,9.patch # if on OpenBSD 6.2 or 6.3. # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.8.tar.gz
If you are installing OpenSSH 7.8 on OpenBSD 6.1, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd61_7,8.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-7,8.tar.gz # patch < /path/to/openbsd61_7,8.patch # if on OpenBSD 6.1 # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.7.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.7.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.6.tar.gz
If you are installing OpenSSH 7.6 on 6.0, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd60_7.6.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.6.tar.gz # cd ssh # patch -p0 < /path/to/openbsd60_7.6.patch # if on OpenBSD 6.0 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.5.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.5.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.4.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.4.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.3.tar.gz
If you are installing OpenSSH 7.2 on 5.8, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd58_7.3.patch.
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.3.tar.gz # cd ssh # patch -p0 < /path/to/openbsd58_7.3.patch # if on OpenBSD 5.8 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.2.tar.gz
If you are installing OpenSSH 7.2 on OpenBSD 5.7 or 5.8, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd58_7.2.patch.
# cd /usr/src/usr.bin # tar xvsfz /openssh-7.2/ssh/ .../openssh-7.2.tar.gz # cd ssh # patch -p0 < /path/to/openbsd58_7.2.patch # if on OpenBSD 5.7 or 5.8 # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.1.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.1.tar.gz # ftp https://ftp.openbsd.org/pub/OpenBSD/patches/5.8/common/002_ssh.patch.sig # signify -Vep /etc/signify/openbsd-58-base.pub -x 002_ssh.patch.sig \ -m - | (cd /usr/src && patch -p0) # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-7.0.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-7.0.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.9.tar.gz
# cd /usr/src/usr.bin # tar zxvf .../openssh-6.9.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.8.tar.gz
# cd /usr/src/usr.bin # tar xvsfz /openssh-6.8/ssh/ .../openssh-6.8.tar.gz # cd ssh # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.7.tar.gz
If you are installing OpenSSH 6.7 on OpenBSD 5.5, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd55_6.7.patch.
If you are installing on OpenBSD 5.4 or earlier, use this patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd54_6.7.patch.
# cd /usr/src/usr.bin # tar xvsfz /openssh-6.7/ssh/ .../openssh-6.7.tar.gz # cd ssh # patch -p0 < /path/to/openbsd55_6.7.patch # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.6.tar.gz
If you are installing OpenSSH 6.6 on OpenBSD 5.4 or earlier, you will
need the following patch:
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd54_6.6.patch.
# cd /usr/src/usr.bin # tar xvfz .../openssh-6.6.tar.gz # cd ssh # patch -p0 < /path/to/openbsd54_6.6.patch # make obj # make cleandir # make depend # make # make install # cp ssh_config sshd_config /etc/sshand restart sshd.
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.5.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.4.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.3.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.2.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.1.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-6.0.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.9.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.8.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.7.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.6.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.5.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.4.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.3.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.2.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.1.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-5.0.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.9.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.7.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.6.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.5.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.4.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.3.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.2.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.1.tar.gz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.0.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.7.1.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.6.1.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.2.3.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.0.2.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.0.1.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.9.9.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.5.2.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.5.1.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.3.0.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.2.0.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.1.1.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-2.1.0.tgz
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-1.2.3.tgz
If you are interested in seeing if there are any OpenSSH patches, see the OpenBSD errata pages.