1.找到SSH服务配置文件
一般路径为/etc/ssh/sshd_config
2.修改配置文件,vim /etc/ssh/sshd_config
把: #UseDNS no
改为: UseDNS yes
3.重启服务
service sshd restart