[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