一、出现的问题
在使用shell连接虚拟机时连接等待时长太长,ssh的服务端在连接时会自动检测dns环境是否一致导致的,修改为不检测即可。
二、解决方法
1、打开sshd服务的配置文件/etc/ssh/sshd_config,把UseDNS yes,改为UseDNS no
如图所示:
2、重启sshd服务
service sshd restart
systemctl restart sshd.service
END
转载于:https://blog.51cto.com/yy1109lll/2299492