将文件/etc/ssh/sshd_config 中配置项#UseDNS yes 修改为no即可
1、找到文件路径
[root@node04 ssh]# pwd
/etc/ssh
[root@node04 ssh]# ll
total 156
-rw-------. 1 root root 125811 Nov 23 2013 moduli
-rw-r--r--. 1 root root 2047 Nov 23 2013 ssh_config
-rw-------. 1 root root 3879 Nov 23 2013 sshd_config
-rw-------. 1 root root 668 May 23 00:12 ssh_host_dsa_key
-rw-r--r--. 1 root root 590 May 23 00:12 ssh_host_dsa_key.pub
-rw-------. 1 root root 963 May 23 00:12 ssh_host_key
-rw-r--r--. 1 root root 627 May 23 00:12 ssh_host_key.pub
-rw-------. 1 root root 1675 May 23 00:12 ssh_host_rsa_key
-rw-r--r--. 1 root root 382 May 23 00:12 ssh_host_rsa_key.pub
2、将UseDNS yes修改为 no即可
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
=============修改后值===============
UseDNS no