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