Centos6.5升级openssh7.8
记录小白的日常补漏
首先确保telnet服务打开
yum -y install telnet-server*
/etc/init.d/iptables stop
vim /etc/xinetd.d/telnet
disable值yes改为no
mv /etc/securetty /etc/securetty.old
/etc/init.d/xinetd start
chkconfig xinetd on
验证 telnet 127.0.0.1
如果telnet报错 说明telnet没有安装完整
yum list telnet*
yum install telnet-server
yum install telnet.*
这里是/etc/ssh文件夹被我删光之后的操作,可以跳过!!!
rpm -qa | grep openssh
rpm -qa |grep openssh|xargs -i rpm -e --nodeps {}
yum remove openssh-*
yum clean all
yum install openssh-server
yum install openssh-clients
yum install openssh
service sshd restart
开始安装openssh7.8
ssh -V
先查看一下已有的版本
rpm -qa | grep openssh
查看一下 已经安装的openssh(应该有三个)
把openssh7.8p1拷贝到 ~
备份
mv /usr/lib64/openssl/ /usr/