iptables 引起 ssh 登陸變慢
今天修改 iptables 設定,從嚴設計,結果啟用新規則後發現 ssh 局域網登陸變慢;外網登陸到沒問題。
修改 /etc/ssh/sshd_conf 文件,
#UseDNS yes
修改為 UseDNS no
保存後重起 sshd,
service sshd restart 問題解決。
ssh_config and GSSAPIAuthentication
The default Fedora ssh_config file comes with GSSAPIAuthentication set
to "yes". This causes a DNS query in an attempt to resolve
_kerberos.<hostname> whenever ssh is invoked. During periods when
connectivity to the outside world is interrupted for whatever reason,
the ssh session won't proceed until the DNS query times out. Not really
a problem, just more of an annoyance when trying to ssh to another
machine on the LAN.
Is there a reason why the default ssh_config comes with
GSSAPIAuthentication set to yes?
Thanks,
Jay
歡迎光臨 亞寶論壇 (http://bbs.ahpal.com/) | Powered by Discuz! 7.0.0 |