openssl下载地址:https://www.openssl.org/source/old/1.0.2/openssl-1.0.2r.tar.gz
openssh下载地址:https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz
mkdir openssh
tar xfz openssl-1.0.2r.tar.gz
tar xfz openssh
tar xfz openssh-8.1p1.tar.gz
yum install pam-devel -y
cd openssl-1.0.2r/
mv /usr/bin/openssl /usr/bin/openssl_bak
mv /usr/include/openssl /usr/include/openssl_bak
./config shared && make && make install
echo ?
vim /etc/ssh/sshd_config
cp -a contrib/redhat/sshd.init /etc/init.d/sshd
cp -a contrib/redhat/sshd.pam /etc/pam.d/sshd.pam
chmod +x /etc/init.d/sshd
chkconfig --add sshd
systemctl enable sshd
mv /usr/lib/systemd/system/sshd.service ./sshd.server_bak0311
chkconfig sshd on
systemctl restart sshd
ssh -V
vim /etc/ssh/sshd_config