centos7解決ssh遠端連線慢的問題
阿新 • • 發佈:2020-12-27
[[email protected] conf.d]# vim /etc/ssh/ssh_config
關閉SERVER上的GSS認證
GSSAPIAuthentication yes 改為 no
關閉DNS反向解析
UseDNS yes 改為 no
修改server上nsswitch.conf檔案
[[email protected] conf.d]# vim /etc/nsswitch.conf
找到
hosts: files dns
改為
hosts:files
[[email protected] ~]#systemctl restart sshd
說明: GSSAPIAuthentication引數是用於Kerberos驗證的,而對於絕大多數人來說,不可能使用這種驗證機制的,所以要注意把他們停掉。然後重啟服務會發現遠端連線速度有明顯提升