Everywhere I look I see that screen
is for keeping a session open so that you can come back to it after disconnection. But this doesn't seem to be the case for a system that I ssh
to. Do I understand correctly, that the sysadmins have crippled nohup and screen? Is there a way to circumvent this?
Here is a test I did (perhaps the problem is me):
mira1:~> screen -S test COMMENT: I did ctrl-a ctrl-d
[detached from 54211.test]
mira1:~> logout
Connection to mira1.**** closed.
me:~ me$ ssh me@mira1.***
Last login: Tue Feb 9 23:21:57 2016 from client*****
mira1:~> screen -ls
No Sockets found in /var/run/screen/S-me.
Edit: The screen is still there after detaching it and before logging out. As in:
mira1:~> screen -S test
[detached from 59923.test]
mira1:~> ls -ltr /var/run/screen/S-me/
total 0
prw------- 1 me URP_dse 0 Feb 9 23:39 59923.test
mira1:~>
Edit 2 for Gile's questions:
Here is ssh
session #1
mira1:~> screen -ls
There is a screen on:
59923.test (09/02/16 23:39:26) (Detached)
1 Socket in /var/run/screen/S-me.
mira1:~> screen -r
[detached from 59923.test]
ssh
session #2
mira1:~> screen -ls
There is a screen on:
59923.test (09/02/16 23:39:26) (Detached)
1 Socket in /var/run/screen/S-me.
ssh
sesssion #1 again
mira1:~> logout
Connection to mira1.**** closed.
client-10-129-225-10:~ me$
ssh
session #2 again (screen gone)
mira1:~> screen -ls
No Sockets found in /var/run/screen/S-me.
ls -ltr /var/run/screen/
after you detach the screen. – MAQ Feb 09 '16 at 23:37.logout
or.bash_logout
or whatever applies to your shell? – Gilles 'SO- stop being evil' Feb 09 '16 at 23:43