On 2008-05-06, htsolution@htsolution.sk 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.


I suspect something is connecting to the ssh server and not authenticating
and eventually you reach the MaxStartups limit, at which point any new
connections are dropped.

You can confirm this by checking the output of "netstat" for connections
to port 22 that don't correspond to logged in sessions. If this does
prove to be the case then you can either fix whatever's holding the
connections open to not do that, or increase MaxStartups in sshd_config
and restart sshd. See the sshd_config(5) man page for details.

Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.