How to terminate nested ssh automatically?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using a nested ssh such as the following to port forward between three
machines.  This forwards the port but the nested ssh (running on ud00) does
not terminate when I terminate the original command.  Is there a better way
so that I don't leave an orphaned ssh process?

ssh -L9000:localhost:9000 ud00 'ssh -N -L9000:10.162.13.143:7710 ud01'

Same version on all machines.
$ ssh -V
OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007
$

John

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux