getting back disconnected remote session
I'm using Debian Sarge and logged into it remotely using PuTTY and SSH and was in the middle of using aptitude when I got disconnected.
My questions are a) can I connect back to that session, or am I forced to just kill that session? b) can those processes just be killed and I can just run aptitude again? when I do who I get myloginname pts/0 2007-06-29 21:59 (10.1.1.99) myloginname pts/1 2007-06-30 09:13 (10.1.1.99) pts/1 looks to be the 2nd remote session I'm logged in with and pts/0 is the one I want to get back to. running a ps tree with ps -ejH (thanks to Google for that one) I get {snip} 22941 22941 22941 ? 00:00:00 sshd 22943 22941 22941 ? 00:00:00 sshd 22945 22941 22941 ? 00:00:03 sshd 22946 22946 22946 pts/0 00:00:00 bash 22952 22952 22946 pts/0 00:00:00 bash 22956 22956 22946 pts/0 00:00:31 aptitude 12287 22956 22946 pts/0 00:00:04 dpkg 21140 22956 22946 pts/0 00:00:00 bash 21142 22956 22946 pts/0 00:00:00 pager {snip} 19042 19042 19042 ? 00:00:00 sshd 21144 21144 21144 ? 00:00:00 sshd 21148 21144 21144 ? 00:00:00 sshd 21149 21149 21149 pts/1 00:00:00 bash 21280 21280 21149 pts/1 00:00:00 ps {snip} |
Afraid you can't. If the connection you're using is not
overly stable it may pay for you to use screen withing your session, and do your work through that ... in case of an unexpected event (e.g. a disconnect, or a local reboot) you can easily re-attach afterwards. Cheers, Tink |
All times are GMT -5. The time now is 05:52 PM. |