[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

How to terminate nested ssh automatically?



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

[Home]     [Fedora Users]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Bible]     [Big List of Linux Books]     [Yosemite Photos]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

Add to Google Powered by Linux