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