SSH登陸慢

1. 修改文件

/etc/ssh/sshd_config

2. 註釋以下內容

useDNS yes
   GSSAPIAuthentication yes

3. 添加以下內容

useDNS no
   GSSAPIAuthentication no

4. 運行以下命令

systemctl daemon-reload
   systemctl restart sshd

5. 從新登陸SSH

相關文章
相關標籤/搜索