使用前记得备份
cp -p /etc/pam.d/sshd /etc/pam.d/sshd.old
cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.old
rpm -Uvh ./*.rpm
升级完记得恢复配置与删除原来openssh生成的key
rm -rf /etc/ssh/ssh_host_*key
cat /etc/pam.d/sshd.old > /etc/pam.d/sshd
cat /etc/ssh/sshd_config.old > /etc/ssh/sshd_config
最后重启
systemctl restart sshd
1