修改openssh版本信息

来源:互联网 发布:手机淘宝卖家登录中心 编辑:程序博客网 时间:2024/05/21 09:35
/////查找sshd的位置
#whereis sshd

/////备份sshd
#cp /usr/sbin/sshd /usr/sbin/sshd.bak.20171116

////搜索版本信息
#strings  /usr/sbin/sshd | grep OpenSSH
OpenSSH_5.9p1
OpenSSH_5.9
OpenSSH_2.3.0*
OpenSSH_2.3.*
OpenSSH_2.5.3*
OpenSSH_3.*
OpenSSH_4*
OpenSSH*
OpenSSH-2.0*,OpenSSH-2.1*,OpenSSH_2.1*,OpenSSH_2.2*
OpenSSH_2.5.0p1*,OpenSSH_2.5.1p1*
OpenSSH_2.5.0*,OpenSSH_2.5.1*,OpenSSH_2.5.2*
OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*

////替换版本信息
#sed -i 's/OpenSSH_5.9/OpenSSH_7.7/g' /usr/sbin/sshd


///重起sshd
#service sshd restart
原创粉丝点击