本地 centos7 ssh连接慢,怎么解决?

45 阅读1分钟

1、vim /etc/ssh/sshd_config

增加:
GSSAPIAuthentication no
UseDNS no

2、vim /etc/resolv.conf

删掉不用的dns

最后 systemctl restart sshd