Aborting an ssh connection on sshrc execution failure
Erik Thuning
thuning at dsv.su.se
Wed Sep 23 19:05:43 AEST 2020
That does seem to have done the trick, thank you!
/T
On 2020-09-18 18:45, Peter Stuge wrote:
> 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?
>
>
> //Peter
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
More information about the openssh-unix-dev
mailing list