= Moving processes to another PTY =

If you started a long-running process in your SSH session and realized it too late, no worries. You can move the process to a screen session using the reptyr command.

Follow these steps:

  1. Figure out the PID of your long-running process.
  2. Start a screen session.
  3. Type: reptyr <PID>.
  4. Done.

= References =