编辑 /etc/ssh/ssh_config 文件,将
[b]GSSAPIAuthentication yes[/b]
改成
[b]GSSAPIAuthentication no[/b]
即可。
原因:
[color=#333333]The default 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.[/color]
[b]GSSAPIAuthentication yes[/b]
改成
[b]GSSAPIAuthentication no[/b]
即可。
原因:
[color=#333333]The default 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.[/color]