laziness, impatience, and hubris | |
PerlMonks |
Re^2: Establishing SSH tunnel and opening another SSH connection through itby tehcook (Initiate) |
on Feb 07, 2012 at 19:06 UTC ( [id://952328]=note: print w/replies, xml ) | Need Help?? |
Thanks for pointing me at ProxyCommand. This is pretty close to JavaFan's suggestion, only wrapped into perl code vs ssh config. One thing I've been wondering about is why one can't pass -L port:host:port to the master ssh. I've tried it with Net::OpenSSH and -L was not passed to the master ssh. Besides a small security concern with that open forwarded port I feel it would be cleaner than proxying via ssh and having to install netcat.
In Section
Seekers of Perl Wisdom
|
|