Re: ssh_exchange_identification: Connection closed by remote host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, Sep 15, 2012 at 07:01:03AM +0200, M. Fioretti wrote:
> 
> On Fri, September 14, 2012 11:48 pm, Stephen Harris wrote:
> 
> > 1) What happens if you run "telnet yourhost 22".
> 
> this is what happens (with the proper IP of course):
> 
> >      Trying 1.2.3.4...
> >      Connected to yourhost (1.2.3.4)
> >      Escape character is '^]'.
> >      Connection closed by foreign host.

This is important; it means the remote SSH server never says 'hello'.

> > 2) How quickly does the "closed" occur?
> 
> I'd say 4/5 seconds

This is possibly indicative of resource starvation at the remote end;
the connection is going into the listen queue, then being accepted but
the process then fails.  It might mean "out of memory" (for example)
so the server can't fork() the new sshd process.  If you mean "4 or 5s"
then we might also be seeing swapping delays.

There _are_ other reasons for this type of behaviour (eg firewalls, network)
but that's the most common one that I've seen.

> #####################################################
> [marco@avalon ~]$ ssh -v -p xxx me@xxxxxxxxxxx

I assume the "xxx" here matches the port you tested with the telnet
test.  Otherwise the telnet test is useless.

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux