s close cleanly:
tred@vaio:~$ ssh server
tred@server:~$ sudo -i
root@server:~# shutdown -h now
Broadcast message from root@server (pts/1) (Sat Nov 8 19:51:03 2008):
The system is going down for system halt NOW!
root@server:~# Connection to server closed by remote host.
Connection to server closed.
My version of ssh
is 1.4.7. Maybe you need to update yours?
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