Friday, January 28, 2011

Ubuntu 10.04 SSH becomes unresponsive

I have a fresh install of Ubuntu Server 10.04 and all is well when using the local term. However, when I use ssh to admin it remotely (it is on the same switch and in the same room) I can login and work for about 2 min. Then the term just stops responding, no errors, nothing. The server is still working fine.

If I kill the terminal and open a new one then login again all is well for another 2 min.

Any ideas?

-Kerry

  • Type dmesg and look for any errors. Also look in /var/log/messages

    I had something just like this happen many years ago. Turned out to be a bad network card or a combination network card and driver problem. When I replaced the card, the problem went away.

    From Porch
  • It could be bad network, try pinging the remote server and see if it has packet loss

    From pinoyskul
  • Try moving your server or your client to a different port on the switch, and/or reboot your switch. This could be bad ARP mapping.

    From pauska
  • Another idea might be to disable the ssh session timeouts. However, if you're getting booted out in two minutes, you may not be running into these timeouts.

    If I were you, I'd add this line to your sshd_config:

    LogLevel DEBUG
    

    Restart your ssh daemon and wait to get booted out of your session again. Once that happens, dig in /var/log/daemon.log and /var/log/messages for some debug information. Don't forget to comment out the DEBUG line shown above and restart ssh once you've read the logs. The messages flowing in from the ssh daemon can fill up your logs rather quickly.

0 comments:

Post a Comment