LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to restore ssh (pts) session after client's disconnetion? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-restore-ssh-pts-session-after-clients-disconnetion-899636/)

anthon 08-26-2011 10:52 AM

How to restore ssh (pts) session after client's disconnetion?
 
Is there any way to restore ssh (pts) session after client's disconnetion?

Here is an algorythm:
1. # ssh username@some.remotehost.com
2. open several interactive programms (mc, vim etc)
3. plug of network cable from client's computer :-)
4. open ssh connection from another computer and run:
# who
username pts/3 Apr 10 14:04 (192.168.1.2) <------ this session must be restored
root pts/6 Apr 2 11:04 (192.168.1.3)
root pts/7 Apr 5 15:39 (192.168.1.4)
.....
5. what to do?

anomie 08-26-2011 10:55 AM

AFAIK, that is not possible after the fact.

Next time use GNU screen or tmux.

anthon 08-27-2011 12:10 AM

Quote:

Originally Posted by anomie (Post 4454182)
AFAIK, that is not possible after the fact.

Next time use GNU screen or tmux.

Any other suggestions?

lithos 08-27-2011 04:10 AM

you could unfortunately just 'kill' the disconnected user to 'logoff'


All times are GMT -5. The time now is 02:22 PM.