PDA

View Full Version : [all variants] How do you recover a broken SSH session if not originally using screen?


kevdog
September 16th, 2009, 01:05 AM
Just wondering if dropped remote SSH sessions can be recovered if not using screen originally

lvlint67
September 16th, 2009, 05:15 AM
Just wondering if dropped remote SSH sessions can be recovered if not using screen originally


"You can't reconnect to a broken ssh connection, and in fact it
should have killed all the processes you were running...."

http://lists.centos.org/pipermail/centos/2006-September/027988.html

The Cog
September 16th, 2009, 06:03 PM
Agreed. Unless the process had been detatched from the ssh tty before the connection broke, it should have been killed by the OS. And if the process had been detatched or run with nohup, I don't know of any way to re-attach a new tty to the process.