openssh 升级,开箱即用,有详细的教程
确认当前版本
ssh -V
#备份现有的openssh配置
mkdir -p /etc/ssh.bak/
cp -ra /etc/ssh/ /etc/ssh.bak/
cp -ra /etc/pam.d/ /etc/ssh.bak/
#安装rpm包
rpm -Uvh openssh-8.9p1-1.el7.x86_64.rpm openssh-server-8.9p1-1.el7.x86_64.rpm openssh-clients-8.9p1-1.el7.x86_64.rpm
1