cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
vi /etc/ssh/sshd_config
/
查找GSSAPIAuthentication
设置以下html
GSSAPIAuthentication no # 是否容许使用基于 GSSAPI 的用户认证。默认值为"no"。仅用于SSH-2
详细解释linux
/
查找UseDNS
设置以下centos
UseDNS no # yes 开启的做用是防止客户端欺骗
详细解释ssh
systemctl restart sshd
亲测有效centos7
原文连接:解决ssh登陆linux速度慢的问题(以centos7为例)spa