[Forgot to CC list]
---------- Forwarded message ----------
From: Jonathan McCrohan <jmccrohan at gmail.com>
Date: 20 July 2012 16:04
Subject: Re: [ILUG] [Beginner] SSH Tunneling
To: Kevin Harry <eskimo1987 at yahoo.com>
Hi Kevin,
On 20 July 2012 15:11, Kevin Harry <eskimo1987 at yahoo.com> wrote:
> 1) @local:ssh -L 2222:xeon:22 kevin at fenom (logs-in to fenom)
> 2) @fenom: ssh -L 50130:localhost:50130 kevin at xeon> 3) @local: ssh -p 2222 kevin at localhost> 4) @local: ssh -L 50130:localhost:50130 kevin at fenom
This can be reduced down to a single command through SSH bouncing. Use
the following ~/.ssh/config file:
Host xeon
Hostname xeon.collegedomain.ie
User xeon-username
ProxyCommand ssh fenomusername at fenom.collegedomain.ie /bin/nc -w 1
xeon.collegedomain.ie 22
To log into your xeon host from local, and port forward hadoop to localhost:
user at local:~$ ssh xeon -L50130:localhost:50130
Jon
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!