I've SSH'd into a machine, started a long running process (let's say, nmap). Now I need to disconnect from SSH, but I want to keep the process running in a tmux/screen session? How do I do this? Read on! 1/x
If I don't already have it, I install a neat little utility called reptyr. For Debian-based systems, you can usually just:
sudo apt install reptyr
I open a tmux/screen session with "tmux" or "screen" 3/x
Nice! 4/4