SSH 登入很慢、很久的問題

Mac 系統的設定檔: /etc/sshd_config
Linux 系統的設定檔: /etc/ssh/sshd_config
你只要在 sshd_config 加上這個設定,在重啟 SSHD server 即可。

UseDNS no

Mac 重啟 SSHD 方式

sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

停用 GSSAPIAuthentication
GSSAPIAuthentication 全名是 Generic Security Services API,這個功能平常也是用不到,所以可以直接停用。

/etc/ssh/sshd_config
UseDNS no
GSSAPIAuthentication no
GSSAPIAuthentication 也可以在 Client 端設定不要使用,你可以修改 ~/.ssh/config

~/.ssh/config
GSSAPIAuthentication no
GSSAPIDelegateCredentials yes

本篇發表於 未分類 並標籤為 。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>