Keep processes running after ending an SSH session

  1. Connect to your Linux machine via SSH.
  2. Type screen and start the process you want to keep running. (screen must be installed.)
  3. Press Ctrl-a then Ctrl-Shift-D to detach from the screen session.
  4. You can now safely log out of the SSH session.
  5. To reconnect later, SSH back in and type screen -r to resume the session and see the output.