When I login to my Debian server over SSH, it "freezes": in interactive mode, I don't get the prompt, if I say ssh server 'ls'
, nothing happens. I can, hovewer, use Bash built-ins, for example ssh server 'su'
will reply "su: must be run from a terminal" and then the session ends. (Only the first session I tried gave me my home directory listing.)
I can also connect to other services (SMTP, IMAP, HTTP) over the network, but get no response.
When I reboot, everything works again.
This happens from time to time and I do not have physical access to the machine at the moment. What should I look for in the logs when I have the chance? Is there any way reboot the server remotely?
Thanks.
Edit: It turned to be a kernel panic caused by a misbehaving firmware. I will open a new thread I will answer to let others know how I fixed it. Thanks for all help.
ssh server 'su'
worked. That required quite a lot of (small) packets to flow.ls
worked once (for my first session), it would work again. Is this assumption incorrect? I do not think this is the case;echo x
wouldn't work either :(.