用 ssh 連其他 linux 機器,會等待 10-30 秒才有提示輸入密碼。這種情況主要有兩種可能的原因
1.DNS 反向解析的問題:
vi /etc/ssh/sshd_config,設定 UseDNS 為 no , 並重啟 sshd
2. 關閉 ssh 的 gssapi 認證:
vi /etc/ssh/ssh_config,設定 GSSAPIAuthentication no , 並重啟 sshd