I'm running an ssh command as a background job:
ssh -l user server 'sleep 1000' &
Lets say that the above returns the process ID: [ssh_pid].
How can I make ssh forward signals to the remote process?
i.e. Supposing that I do: kill -TERM [ssh_pid]
, then it should forward the TERM signal to the remote process, instead of handling it by itself.