If I run the command$ ssh othermachine ncat localhost 10000that opens an ssh session to othermachine and pipes it into an ncat process. (There's something else listening on othermachine port 10000). Now if I disconnect the ssh session (with Ctrl+C) the ncat process on othermachine keeps running. How do I prevent that? I want ncat to die if its parent ssh exits.
ssh ncat keeps ncat process running after disconnect; how do I prevent that?
ssh;process