Re: Connection closed by remote host

It seems very likely that you may be hitting the maximum number of unauthenticated connections. I believe the default is 10. Anytime someone has connected, but has not yet fully authenticated, they are in this bucket. This can really show up on publically available SSH daemons - perhaps your connections are getting chewed up by someone trying to brute-force your passwords.

Another possibility (sorry, can recall exact versions where this effected it) is a bug I ran into where connections that exited too quickly also resulted in a similar situation. Look at the output of ps and see if you have a bunch of defunct SSH processes laying around. I ran into this on some of our Debian Sarge hosts, where I was doing a simple ssh 'cat /proc/loadavg' for monitoring. I didn't dig too much into it, but if you google around you should be able to find something there. An upgrade got around this in our case.

On Tuesday, May 06, 2008, at 12:30PM, "boris brinza" <boris.brinza@xxxxxxxxxxxxx> wrote:

I have strange problems with connecting to remote machine running suse
enterprise 9.0 sp3 using ssh

After server is restarted, everything works fine.
Then, after 5-6 days, sshd starts to drop incoming connections.
Server has IP from private network range, i connect to router with
public IP, port 222, which is then forwarded to my server (port 22)
Sometimes, ssh starts to work, but 10 minutes later, again, connections
are refused.

Here is log i've got at client side:

hts-fw:~# ssh -p 222 -vvv
OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c 05 Sep 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
Connecting to [] port 222.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

Have anyone anything, that can help?
Tahnks in advance


HT Solution s.r.o.
Slávi?ie údolie 104
811 02 Bratislava
tel: +421 (2) 3500 2512
mob: +421 903 602 126

Relevant Pages

  • Re: SSH Connects for me only sporadically.
    ... Now the server is behind a wireless router, ... port has a non standard external port number. ... ssh, and I get the same results. ... Connecting with ssh on the local lan at home works fine every time. ...
  • Re: OpenSSH MacOSX bug? (invalid name was supplied)
    ... I've had some luck downgrading to ssh version 1 (i.e. use ... connecting to either debian or Ubuntu OpenSSH server... ... Server Version: ... hosts, but any hosts on my local LAN ...
  • Re: Forms authentication - change password
    ... Contact the server administrator. ... I think your authentication validation method needs to be set to ... the change password feature within ISA ... | | meant not connecting to a Global Catalog. ...
  • Re: Q: paramiko/SSH/ how to get a remote host_key
    ... I am connecting from a WindowsXP SP2 machine. ... SSH client, if you connect for the first time then you get somethign ... host_key the first time it connects to a remote SSH server. ...
  • Re: SBS Slow user logons problem
    ... Microsoft MVPs ... Are the workstations and Server all connecting their nics to a router? ...