1、修改配置文件 vim /etc/ssh/sshd_config 将其中的 #UseDNS yes 修改为 UseDNS no 并去掉 “#” 2、重启sshd service sshd restart