rpm 下载:
文件下载后解压 zip
centos7_openssh-9.8.tar
查询当前系统版本 ssh
[root@bim-0002 data]# ssh -V
OpenSSH_9.5p1, OpenSSL 1.1.1k FIPS 25 Mar 2021
上传文件到服务器后解压
[root@bim-0002 data]# tar -xvf centos7_openssh-9.8.tar
centos7_openssh-9.8/
centos7_openssh-9.8/openssh-9.8p1-1.el7.x86_64.rpm
centos7_openssh-9.8/openssh-clients-9.8p1-1.el7.x86_64.rpm
centos7_openssh-9.8/openssh-debuginfo-9.8p1-1.el7.x86_64.rpm
centos7_openssh-9.8/openssh-server-9.8p1-1.el7.x86_64.rpm
备份文件
cp -R /etc/ssh /etc/ssh.bak
cp -R ~/.ssh ~/.ssh.bak
cp -R /etc/pam.d /etc/pam.d.bak
升级安装
cd centos7_openssh-9.8/
yum -y install *.rpm
或
cd centos7_openssh-9.8/
rpm -ivh *
更新验证
[root@abc centos7]# sshd -V
OpenSSH_9.8p1, OpenSSL 3.0.14 4 Jun 2024
[root@abc centos7]# ssh -V
OpenSSH_9.8p1, OpenSSL 3.0.14 4 Jun 2024
非常感谢,已经解决。从7.5升级到9.8了。
测试评论