Remote shutdown via ssh frozen the local console
I logged into the remote computer via 'ssh root@<remoteIP>' and when typing the root password, I got the '#' prompt. Then I typed in a console 'shutdown -h now', the remote computer was really shutdown, but my local console was frozen (I am using a text console). I had to 'Ctrl+Alt+F2' to switch to another terminal to continue my work. Does anyone know how to fix this problem?
|
ssh was probably still running.
You could have exited it with <CTRL>-c |
Sometimes this happens to me also... you can avoid the problem by scheduling the shutdown, in order to have enough time to logout before the shutdown begins (see the manpage of the shutdown command).
When the console is frozen, you can always find the associated ssh process and kill it with a -9 signal or another "violent" signal. |
Quote:
|
Quote:
|
My shutdowns close cleanly:
Code:
tred@vaio:~$ ssh server And you should not have root logins by ssh enabled. Do it as I have done, above: First login as yourself, then gain root privileges. root logins should be DENIED to ssh |
All times are GMT -5. The time now is 02:19 AM. |