Ssh – persistent ssh sessions without screen or tmux

gnu-screensshtmux

My work seems to have deliberately crippled screen and tmux such that they destroy all sessions on logout (they didn't answer when I opened a ticket about it). i.e., when I [detach and] log out, either with ctrl-D or just close the terminal emulator on my local machine, and log back in, the tmux and screen no longer have any detached sessions.

1) Is there a way around this?

2) If the system is killing all background processes for logged out users I can't expect to recover an accidentally disconnected session, but is there a tool for writing details of the session to the disk? Such as there is in emacs, for example?

I don't know what details to provide yet, so please ask.

Best Answer

Aside from running emacs -nw via ssh (and having it save its session), your options are slim to none, because very few tools do this (outside of the GUI desktops, whose attempts to do this are frequently bizarre).

Since your "work" wants to kill idle sessions, they've probably also limited or eliminated cron.

You could try nohup, but usually that's checked-out and killed as well. Any competent systems administrator has already forestalled the workarounds which are available to you.

Related Question