CentOS7升级OpenSSH

CentOS7升级OpenSSH

当前状态

查看openssh版本 ssh -V,查看openssl版本openssl version,记录当前版本号以便升级后做对比。

开启Telnet

升级ssh的过程中可能导致ssh无法登录,所以最好先开着Telnet。

1
2
3
4
5
6
7
8
9
10
11
12
yum install xinetd telnet-server -y
systemctl enable xinetd.service
systemctl enable telnet.socket
systemctl start telnet.socket
systemctl start xinetd
# 允许root登录
echo 'pts/0' >>/etc/securetty
echo 'pts/1' >>/etc/securetty
systemctl restart xinetd.service
# 防火墙添加过滤
firewall-cmd --add-service=telnet --zone=public --permanent
# 确认下telnet是否可以登录成功
阅读更多
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×