[OpenIndiana-discuss] ssh sessions timing out?

Dan Swartzendruber dswartz at druber.com
Thu Oct 13 13:07:10 UTC 2011

Yeah, I think that's it.  I happened to notice a few minutes ago that when I
ssh to 'nas.druber.com', it is connecting via ipv6 and has the lag.  If I
change the putty entry to, it connects instantly.  I am wondering
now if the ssh issue is also ipv6 related?  I now have two ssh sessions
open, one via ipv4 and one via ipv6.  I am running wireshark on the ipv4
only at this point.  If the ipv6 one dies, I may retry wireshark on the ipv6

-----Original Message-----
From: James Carlson [mailto:carlsonj at workingcode.com] 
Sent: Thursday, October 13, 2011 9:04 AM
To: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] ssh sessions timing out?

Gary Gendel wrote:
> Back on topic... My OpenIndiana ssh service seems to take a long time to
> connect with a client (long delay before the password prompt is
> displayed).  It happens most of the time and feels like a network
> timeout issue.  How can I figure out what it's waiting for?

That sounds like a very common (and not Solaris-specific) network
symptom: check your reverse (IN PTR) DNS records and/or /etc/hosts,
/etc/nsswitch.conf, and /etc/resolv.conf files.  The usual reason this
happens is that the sshd process (the server) attempts to look up the
canonical host name for the incoming connection, and since the address
isn't known or the DNS resolver is misconfigured, it takes a long time
for the server to give up trying to get a name for the client.

The test for this, on the server side, would be to do something like this:

	% getent hosts

... but replace that address with the address of the client.  If that
query doesn't return immediately with a useful answer (such as
" dhcp-200"), that's what's wrong.

James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>

OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org

More information about the OpenIndiana-discuss mailing list