ubunut:restore_a_lost_ssh_section

Restore a Detacted SSH Section

Login a new ssh session. To view your own detacted ssh screen:

screen -list

To view detacted screen owned by root:

sudo screen -list

You will see something like this:

There is a screen on:
        6051.pts-12.SERVER_NAME    (Thursday, April 09, 2099 02:10:26 HKT) (Detached)
1 Socket in /run/screen/S-YOUR_LOGIN_NAME.

To reattach the session (Use sudo for root's session):

screen -d -r YOUR_LOGIN_NAME/6051.pts-12.SERVER_NAME

To exit that session type exit, now you return to the original ssh session.

  • ubunut/restore_a_lost_ssh_section.txt
  • Last modified: 2020/04/09 14:18
  • by chongtin