ssh的连接远程linux主机的时候会有几秒的等待,但是网络没有问题,因为ssh配置文件里面的UseDns 未配置,

修改/etc/ssh/sshd_config 里面的

#UseDns yes

修改为

UseDns no

重启ssh服务器即可

service sshd reload