SSH版本号修改

[root@localhost ~]# whereis ssh
ssh: /usr/bin/ssh /etc/ssh /usr/share/man/man1/ssh.1.gz
[root@localhost ~]# ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
[root@localhost ~]# cp /usr/bin/ssh /usr/bin/ssh.bak
[root@localhost ~]# strings /usr/bin/ssh |grep OpenSSH
OpenSSH_7.4p1
OpenSSH_7.4
OpenSSH_2.3.0*
OpenSSH_2.3.*
OpenSSH_2.5.3*
OpenSSH_3.*
OpenSSH_4*
OpenSSH_5*
OpenSSH_6.6.1*
OpenSSH_6.5,OpenSSH_6.6
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*
[root@localhost ~]# sed -i 's/OpenSSH_7.4/OpenSSH_9.4/g' /usr/bin/ssh
[root@localhost ~]# ssh -V
OpenSSH_9.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017

发表评论

邮箱地址不会被公开。 必填项已用*标注