xshell连接虚拟机需要很长时间问题解决方法

xshell连接虚拟机时出现连接时间很长,在此界面很久:

 解决方法:

vim /etc/ssh/sshd_config


 UseDNS no —>把注释打开,改为no。如上图所示

重启ssh服务:

service sshd restart

完成后即可正常速度连接虚拟机了。

原文地址:https://www.cnblogs.com/7920284109q/p/15668217.html