Aborting an ssh connection on sshrc execution failure

Peter Stuge peter at stuge.se
Sat Sep 19 02:45:11 AEST 2020

Erik Thuning wrote:
> What I would like to do is to abort the connection, preferrably with 
> some kind of descriptive error, when my sshrc script returns a non-zero 
> exit status. Is this possible?

kill -9 $PPID

in sshrc would perhaps work?


More information about the openssh-unix-dev mailing list