>>>>> "Rick" == Rick Welykochy <[EMAIL PROTECTED]> writes:

Rick> Sonia Hamilton wrote:

>> Anyone know the syntax/method for setting up a multi-hop ssh
>> tunnel?

Rick> I've done two hops by specifying the second hop as the command
Rick> to be run, e.g.


Rick> ssh <firsthopparams> ssh <secondhopparams>

You can also use netcat on the gateway host(s).

In .ssh/config, do something like:

host *.destdomain
         proxycommand ssh [EMAIL PROTECTED] /bin/nc -q 0 %h %p

host gateway2host.gateway2domain
         proxycommand ssh [EMAIL PROTECTED] /bin/nc -q 0 %h %p


You may have to enable ssh-agent forwarding.
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to