= 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:
- Figure out the PID of your long-running process.
- Start a screen session.
- Type:
reptyr <PID>
. - Done.