I ssh to a remote computer, and create a screen session there. Then I lose the internet connection. When I ssh again to the computer, I want to see if the created screen session is still there, so I run
$ screen -l
but it seems to me that it doesn't list screen sessions, but create a new session, so I ctrl-d and terminate it.
[screen is terminating]
Then I run
$ screen -ls
No Sockets found in /var/run/screen/S-tim
Does it mean that losing internet connection will kill any attached screen session?
Note: I tried to reproduce the above scenario except screen -l
, but surprisingly to me, ssh doesn't lose connection after I deliberately disconnect from the internet, wait for some time and then reconnect again.
screen
as a different user than the user you logged in as after reconnecting? – Sreeraj Apr 08 '15 at 04:56