网址链接:https://blog.csdn.net/yuhang_666/article/details/86605058
不过里面的第7点
“
7.卸载旧的ssh
# cp /etc/init.d/sshd /tmp #备份启动项
# cp -r /etc/ssh /etc/ssh.old #备份一些之前的文件
# rpm -qa|grep openssh
# rpm -e --nodeps openssh-clients-5.3p1-94.el6.x86_64
# rpm -e --nodeps openssh-5.3p1-94.el6.x86_64
# rpm -e --nodeps openssh-askpass-5.3p1-94.el6.x86_64
# rpm -e --nodeps openssh-server-5.3p1-94.el6.x86_64
warning: /etc/ssh/sshd_config saved as /etc/ssh/sshd_config.rpmsave
#rpm -qa|grep openssh
”
中“# rpm -e --nodeps openssh-clients-5.3p1-94.el6.x86_64” 也会报一个“warning”错误(同“# rpm -e --nodeps openssh-server-5.3p1-94.el6.x86_64”)。另外,更新ssl到OpenSSL 1.0.1e-fips可以用命令“yum update openssl”。
过程中用到的rpm包的下载路径如下:
telnet-server-0.17-47.el6_3.1.x86_64.rpm:http://rpm.pbone.net/index.php3/stat/4/idpl/19842472/dir/scientific_linux_6/com/telnet-server-0.17-47.el6_3.1.x86_64.rpm.html
zlib-devel-1.2.3-29.el6.x86_64.rpm:https://centos.pkgs.org/6/centos-x86_64/zlib-devel-1.2.3-29.el6.x86_64.rpm.html
openssh-7.9p1.tar.gz:http://www.linuxfromscratch.org/blfs/view/8.4-systemd/postlfs/openssh.html