ssh连接慢解决办法(成功)
用真机连接虚拟机卡的话:
1.进入虚拟机vim /etc/ssh/sshd_config
2.将 #UseDNS yes改为UseDNS no即可如下:
使用/UseDNS找到地方然后添加
#UseDNS yes
UseDNS no
#PidFile /var/run/sshd.pid
systemctl restart sshd
[root@foundation21 network-scripts]# ssh root@172.25.254.121
root@172.25.254.121’s password:
#速度非常可以,成功
如果是虚拟机ssh连接真机