0

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.

2
  • linux.die.net/man/1/autossh Commented Oct 27, 2020 at 1:06
  • this shouldn't be a problem. screen has 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 Commented Oct 27, 2020 at 3:15

1 Answer 1

0

Use the disown command. Start the process and append with disown. For example:

$ ping google.com & disown 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.