I know screen can let the processes keep running after disconnecting from a ssh session, if I’m doing something like: local machine -> ssh -> server.
But I need to access a server through a jump machine: local machine -> ssh -> jump machine -> ssh -> server. Now if I use screen and ssh back to the server, the screen sessions are lost as well.
screenhas to run on server but not on jump machine. if the session dies, no matter wich one, you can open the tunnel again and get your screen back