intermittent sshd connection problem in Linux

From: LazyAnt (soporte_altex_at_hotmail.com)
Date: 02/26/04


Date: 26 Feb 2004 14:46:49 -0800

Hello,

I'm running sshd (OpenSSH_3.5p1) on a Red Hat Linux 9 server (kernel
2.4.20-8smp) and sometimes the users or myself cannot connect through
ssh.

The error I get is "connection refused by the server".

It's an intermittent problem and I cannot reproduce it.

It's not a client problem or a network problem, as:
- I've tried with several clients (puTTy, cygwin, ssh) from Windows
and Linux.
- I can see the requests with tcpdump in the server
- I can see the half connections to ssh port in the server with
netstat

The sshd service is running, and I can connect through it from another
private network interface, even when it's not working from the public
one.

- There's nothing significant in the /var/log/secure or
/var/log/message

- When I run sshd in the debug mode, if I try to connect from the
public interface nothing happens, but it works properly when trying
from the private one.

- It's not a firewall problem, I tried turning it off also.

- I'm not running any other network services but sshd.

- The sshd configuration file is the default one.

After some time I can connect as if nothing happened.

any suggestions?

thanks



Relevant Pages

  • Re: Questions on secure remote access to Fedora Core 2
    ... not secure at all, because hostnames can be forged. ... The users should generate themselves key pairs for SSH access. ... on the server, work on it, and then send it back. ... Linux-based, then Network Block Devices are a good idea, too. ...
    (comp.os.linux.security)
  • Re: FreeBSD 8.0 - network stack crashes?
    ... If memory serves me right, sometime around 10:52am, Weldon S Godfrey 3 told me: ... Something happens to the stack that causes processes accessing the network to just hang. ... Always, you can't ssh or telnet out, and nothing can access the NFS shares on the server. ...
    (freebsd-current)
  • remote administration of upgrades
    ... server that I administer runs FreeBSD 4.8, ... have ssh access to ... don't want to fubar sshd and then not be able to ... kill only the ...
    (freebsd-questions)
  • Re: ssh going zombie
    ... on the server kill the ssh server then restart it with the -d flag to put ... it into debug mode. ... and the ssh process hogs the processor on the server. ... subprocess is removed from the sshd config file the a sub sshd process ...
    (SSH)
  • RE: sshd / ssh setup
    ... USA server and his windows/xp notebook to use SSH. ... followed sshd instruction and built ... and require users to submit keys. ...
    (freebsd-questions)