SSH tunnel through a Bastion host ? [message #583509] |
Mon, 05 July 2010 13:29  |
Eclipse User |
|
|
|
I need to remotely access a machine on a network accessible only through a bastion host.
Currently I'm just sshing to the bastion, and from there sshing to the machine I need. Right now I'm just viming the code, but I'd love to setup eclipse with RSE and work with that. Right now I can only set up the connection to the bastion through RSE from there I'm stuck on how to set-up a secondary ssh session. I'd greatly appreciate some help with this.
|
|
|
Re: SSH tunnel through a Bastion host ? [message #639459 is a reply to message #583509] |
Tue, 16 November 2010 11:10  |
Eclipse User |
|
|
|
Hi,
you can setup an SSH tunnel through your bastion to the remote,
using the following ssh commandline command:
ssh -l bastionuser bastion -L27120:remote:22
Now, create an RSE SSH-Only connection to host "Localhost" but name
it "Remote-through-bastion". Right click on the "Sftp Files" subsystem,
and open Properties. On the Subsystem Properties page, change port
to 27120.
Connect, entering your remote username --> you will get full SSH and
File Subsystems to your remote, since the remote will think that the
SSH connection has been initiated at the bastion.
Note that bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=195170
is currently open for supporting such tunneling directly through
RSE (at the moment, you need the ssh commandline to setup the tunnel). I
tested this on a Linux host and it worked fine - though OpenSSH or
Cygwin SSH should also support this on Windows.
HTH,
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds