I very often SSH into a computer just to send it to sleep. The problem is when it sleeps, it holds the SSH connection open (seemingly indefinitely). Here's what happens:
oli@bert:~$ ssh tank
oli@tank:~$ sudo pm-suspend
[sudo] password for oli:
I put my password in, hit Return and then it hangs… Until I wake the remote machine.
Is there any way to force a disconnect locally so I can get my terminal back without having to close it and start another?