1、在ssh服务端上更改配置文件: vi /etc/ssh/sshd_config 在文件最后添加: UseDNS no GSSAPIAuthentication no

2、重启SSHD服务 CentOS6:执行/etc/init.d/sshd restart CentOS7: systemctl restart sshd.service