screen
screen
Got a shell connection to a dodgy host that keeps giving you the boot? after you login, run screen:
#screen -DD -R
You will still get booted, but at least you can get right back to where you were when you reconnect by replaying the above command.