升级openssh后版本不一致问题

[root@ecs-7ef8 ~]# ssh -V
OpenSSH_8.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
[root@ecs-7ef8 ~]# /usr/bin/ssh -V
OpenSSH_8.7p1, OpenSSL 1.1.1o  3 May 2022


[fortress@ecs-7ef8 ~]$ ssh -V
OpenSSH_8.7p1, OpenSSL 1.1.1o  3 May 2022
[fortress@ecs-7ef8 ~]$ which sshd
/usr/sbin/sshd
[fortress@ecs-7ef8 ~]$ which ssh 
/usr/bin/ssh


[root@ecs-7ef8 ~]# ps aux | grep ssh 
root      67696  0.0  0.0  33812  1364 ?        Ss   May26   0:00 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups
root     102468  0.0  0.0 102676  4656 ?        Ss   16:24   0:00 sshd: fortress [priv]
fortress 102470  0.0  0.0 102676  2384 ?        S    16:24   0:00 sshd: fortress@pts/0
root     103249  0.0  0.0 102676  4652 ?        Ss   16:28   0:00 sshd: fortress [priv]
fortress 103251  0.0  0.0 102676  2380 ?        S    16:28   0:00 sshd: fortress@pts/1
root     103475  0.0  0.0 112712   988 pts/0    S+   16:29   0:00 grep --color=auto ssh

[root@ecs-7ef8 ~]# mv /usr/local/bin/ssh /usr/local/bin/ssh.old
[root@ecs-7ef8 ~]# cp /usr/bin/ssh /usr/local/bin/ssh
[root@ecs-7ef8 ~]# ssh -V
OpenSSH_8.7p1, OpenSSL 1.1.1o  3 May 2022

[sre@ecs-7ef8 bin]$ md5sum /usr/local/bin/scp /usr/bin/scp   #不一样则更换文件
878831b88d54e794b2e674f28416a2ea  /usr/local/bin/scp
45534e6bba8d0158da503116d82ff7eb  /usr/bin/scp

mv /usr/local/bin/scp /usr/local/bin/scp.old
cp /usr/bin/scp /usr/local/bin/

md5sum /usr/local/bin/ssh-agent /usr/bin/ssh-agent

mv /usr/local/bin/ssh-agent /usr/local/bin/ssh-agent.old
cp /usr/bin/ssh-agent /usr/local/bin/ssh-agent


md5sum /usr/local/bin/ssh-add /usr/bin/ssh-add
mv /usr/local/bin/ssh-add  /usr/local/bin/ssh-add.old
cp /usr/bin/ssh-add /usr/local/bin/ssh-add

md5sum /usr/local/bin/ssh-keygen /usr/bin/ssh-keygen
mv /usr/local/bin/ssh-keygen  /usr/local/bin/ssh-keygen.old
cp /usr/bin/ssh-keygen /usr/local/bin/ssh-keygen

md5sum /usr/local/bin/ssh-keyscan /usr/bin/ssh-keyscan
mv /usr/local/bin/ssh-keyscan  /usr/local/bin/ssh-keyscan.old
cp /usr/bin/ssh-keyscan /usr/local/bin/ssh-keyscan


md5sum /usr/local/bin/sftp /usr/bin/sftp
mv /usr/local/bin/sftp  /usr/local/bin/sftp.old
cp /usr/bin/sftp /usr/local/bin/sftp

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值