On Tue, 23 Jan 2018, Thomas Güttler wrote: > > I want ssh to forward the SIGTERM signal to the remote command. > > Example: > ssh root@localhost /root/print-signal.py > > Get PID of ssh: > ps aux| grep print-signal > > Kill the matching ssh process: > kill pid-of-ssh You might be able to get around it by running: $ ssh root@localhost '/root/print-signal.py </dev/null >/dev/null 2>/dev/null' I recall I used that in another context. I also recall the `ssh' command not returning the prompt. Does that allso happen to you? Cheers, -- Cristian _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev