1、通过time查看连接所需时间,用于比对[root@localhost ~]# time ssh 192.168.10.236 "cat /etc/issue"\SKernel \r on an \mreal 0m11.607suser 0m0.033ssys 0m0.018s由上可以看出所需时间花了11s

3、重启目标服务器的ssh服务centos7使用systemctl restart sshdcentos6使用service sshd restart

时间:2024-10-15 09:04:35
1、通过time查看连接所需时间,用于比对[root@localhost ~]# time ssh 192.168.10.236 "cat /etc/issue"\SKernel \r on an \mreal 0m11.607suser 0m0.033ssys 0m0.018s由上可以看出所需时间花了11s
3、重启目标服务器的ssh服务centos7使用systemctl restart sshdcentos6使用service sshd restart