Keep processes running after ending an SSH session
September 19, 2019
- Connect to your Linux machine via SSH.
- Type
screenand start the process you want to keep running. (screenmust be installed.) - Press Ctrl-a then Ctrl-Shift-D to detach from the screen session.
- You can now safely log out of the SSH session.
- To reconnect later, SSH back in and type
screen -rto resume the session and see the output.