Re: SSH 'hangs' during authentication
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Florian Kulzer wrote:
> On Sun, Jun 17, 2007 at 12:12:46 -0400, Allan Wind wrote:
>> On 2007-06-17T16:44:52+0200, "Jørgen P. Tjernø" wrote:
>>> I'm having some issues with ssh taking about ~12 seconds to connect -
>>> but the ssh session itself is snappy - no lag at all.
>> [...]
>>
>>> Anyone have any suggestions? :-)
>> It probably trying to do a forward or reverse DNS lookup. Does it make
>> a difference if you use an IP address intead of a hostname?
>
> It might also help to use
>
> ssh -o 'GSSAPIAuthentication no' ...
>
> on the client
>
> and/or to add
>
> UseDNS no
>
> to /etc/ssh/sshd_config on the server. (I think the ssh daemon has to be
> restarted for this to take effect.)
>
> You can of course also put the "GSSAPIAuthentication no" option into
> your ~/.ssh/config on the client.
The DNS names shouldn't resolve from outside, but I do use an IP to
connect to it (i.e. the hostname of the remote host is a local hostname
that doesn't resolve on my end, and vice versa).
UseDNS no didn't make any difference, but disabling GSSAPI on the client
made it quite snappy again. I wonder why GSSAPI slows it down so, :-)
Thanks a lot for your help, both of you!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGdYvuwqQbW3my7pcRAiaeAJ41WXlivKPc684BEzmrSIlOnpR7twCfWkmZ
RrmC14IwrG0Fqee8dA+1irs=
=h2pQ
-----END PGP SIGNATURE-----
Reply to: