Keep a process running after exiting SSH session
- In SSH, launch the process you wish to keep in background, for example
cp -Rv /mnt/red/*.* /mnt/black
- Suspend the process by pressing
- Resume suspended process in background by typing
- Detach the process from SSH session by typing
- Exit the SSH by typing
The process will continue running in background.
fg at step (3) will bring the process back to foreground.