[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@localhost ~]# ssh -V
OpenSSH_6.6p1, OpenSSL 1.0.2k-fips 26 Jan 2017
[root@localhost ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017
[root@localhost ~]# yum -y install gcc gcc-c++ openssl-devel zlib-devel
[root@localhost ~]# tar -zxf openssh-8.3p1.tar.gz
[root@localhost ~]# ls
openssh-8.3p1 openssh-8.3p1.tar.gz
[root@localhost ~]# cd openssh-8.3p1
[root@localhost openssh-8.3p1]# ./configure --prefix=/usr --sysconfdir=/etc/ssh
[root@localhost openssh-8.3p1]# rpm -e --nodeps `rpm -qa | grep openssh` #卸载旧的 openssh 版本,也可不卸载
./config --prefix=/usr --shared
[root@localhost openssh-8.3p1]# rpm -qa | grep openssh
空
[root@localhost openssh-8.3p1]# make
[root@localhost openssh-8.3p1]# make install
......
Permissions 0640 for '/etc/ssh/ssh_host_ed25519_key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
sshd: no hostkeys available -- exiting.
make: [check-config] Error 1 (ignored)
#出现上面错误,可忽略
[root@localhost openssh-8.3p1]# chmod 600 /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_ecdsa_key
[root@localhost openssh-8.3p1]# ssh -V