Linux 一键升级openssh-7.9,8.0,8.1
一、openssh默认升级到8.0p1
OPENSSHVERSION=8.0p1
二、openssl默认升级到1.0.2r
OPENSSLVERSION=1.0.2r
三、执行
下载脚本,并上传至服务器
解压
tar -zxvf scripts.tar.gz
进入目录执行
sh conbi.sh
等待安装成功即可。
备注:降级
rpm -Uvh --oldpackage **.rpm
进入修改SSH设置
vi /etc/ssh/sshd_config
PermitRootLogin without-password 改为 PermitRootLogin yes
StrictModes yes 也设为yes
重启
systemctl restart sshd
四、验证
ssh -V
结果如下: