# Centos7 默认版本ssh
[root@localhost ~]# ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
# 备份配置
[root@localhost ~]# cp -r /etc/ssh/ /opt/ssh_bak
[root@localhost ~]# wget https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz
[root@localhost ~]# ls
openssh-8.0p1.tar.gz
[root@localhost ~]# tar -xf openssh-8.0p1.tar.gz
[root@localhost ~]# cd openssh-8.0p1/
[root@localhost openssh-8.0p1]# ./configure
[root@localhost openssh-8.0p1]# make && make install
[root@localhost openssh-8.0p1]# systemctl restart sshd
[root@localhost openssh-8.0p1]# ssh -V
OpenSSH_8.0p1, OpenSSL 1.0.2k-fips 26 Jan 2017
简书记录,美好生活