After logging out of SSH, screen sessions disappear on Arch Linux

Posted by Ivan on Super User See other posts from Super User or by Ivan
Published on 2013-10-26T01:06:29Z Indexed on 2013/10/26 3:58 UTC
Read the original article Hit count: 309

Filed under:
|

On Arch Linux (I'm on a single dedicated server, where my domain name points to only one IP), when I SSH into a user (say, for example, user mc), and then do

screen -S test

(or -dmS, the resulting issue is the same), run a command, and then detach from it, then exit out of my SSH session, and log back in, the screen session disappears.

screen -ls

returns

No Sockets found in /run/screens/S-mc.

The only way I can reattach to my sessions is if I never logged out of my SSH.

How do I fix this?

  • I do have read/write access in /run/screens/S-mc
  • I detach from screen sessions with Ctrl-A,D
  • disown -a && exit gives me the same problem
  • shopt huponexit returns "huponexit off"

There is no ~/.logout, and ~/.bash_logout is empty, with 3 lines of comments, telling me it's the ~/.bash_logout file

ls -l /usr/bin | grep screen 

returns

lrwxrwxrwx 1 root root 12 Oct 31 2012 screen -> screen-4.0.3 
-rwsr-xr-x 1 root root 363672 Oct 31 2012 screen-4.0.3

© Super User or respective owner

Related posts about linux

Related posts about ssh