ssh delays 40 seconds

Jonathan Chen jonc at chen.org.nz
Mon Jun 6 02:32:37 GMT 2005


On Sun, Jun 05, 2005 at 03:25:08PM -1000, Robert Marella wrote:
> Robert Huff wrote:
> >Richard J. Valenta writes:
> >
> >
> >>I had this problem in the past, and it was due to DNS problems where my
> >>IP from the client machine was unable to be resolved... but I think it
> >>took longer than 40 seconds.  I mentioned this in this list before, a
> >>search of the list may help.
> >
> >
> >	Affirmed for the general case.  "30 second delay, then normal
> >network activity" _screams_ DNS misconfiguration, usually but not
> >always in the client side.
> >
> >
> >			Robert Huff
> 
> Forgive me if I am dense. According to the readout of "ssh -vvv gateway" 
> the connection is made immediately. Does that not indicate that it knew 
> where to go?

It's not the forward case that's the problem. The sshd daemon on the
server side attempts to find out where the connection is from by doing
a reverse-lookup. If the incoming IP hasn't got a DNS entry, the failing
DNS ip-lookup will time out in ~30s.

Cheers.
-- 
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
                "I don't want to achive immortality through my works..
                 I want to achieve it through not dying" - Woody Allen


More information about the freebsd-questions mailing list