Re: SSH connection pause
- From: per@xxxxxxxxxxxx (Per Hedeland)
- Date: Wed, 23 May 2007 21:39:43 +0000 (UTC)
In article <1179909344.731327.163870@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
theredmini@xxxxxxxxx writes:
I have a problem with an SSH server we have here, where any SSH
connections to it will take around 30 seconds before prompting the
user for a password. The most common cause of such pauses from reading
other posts would appear to be reverse lookups failing, but that
doesn't seem to be the case here.
Why don't you think so? It seems to match the symptoms perfectly.
Everything seems to go ok until the client requests the server's
protocol and SSH version. At that point, there is a pause for around
20 - 25 secs before it responds with "Remote protocol version 1.99,
remote software version OpenSSH_4.1".
The client doesn't "request" that, it's the first thing the server
sends, and it does so spontaneously. If it's waiting for a reverse DNS
lookup of the client's IP address, it won't send it until the lookup
completes or times out. You can simply telnet to port 22 on the server
and see the delay - on a properly working server you get the version
string immediately.
If not DNS, it could also be a problem with IDENT lookup - I don't think
OpenSSH's sshd has that builtin, but it's frequently built to use
libwrap, which may or may not do IDENT lookups depending on compile-
time settings and/or config (hosts.{allow,deny}). If you're simply
dropping incoming IDENT connections on the client due to firewall
config, the lookups will take a potentially long time to fail. It's
generally better to have the firewall respond with RST, or let the
connections through and the host stack will respond with RST due to
nothing listening on port 113.
--Per Hedeland
per@xxxxxxxxxxxx
.
- Follow-Ups:
- Re: SSH connection pause
- From: theredmini
- Re: SSH connection pause
- References:
- SSH connection pause
- From: theredmini
- SSH connection pause
- Prev by Date: Re: Sloooowwwww ssh/scp
- Next by Date: Re: ssh to AIX 5.3 pauses on xauth
- Previous by thread: SSH connection pause
- Next by thread: Re: SSH connection pause
- Index(es):
Relevant Pages
|