Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » SSH tunnel through a Bastion host ?
SSH tunnel through a Bastion host ? [message #583509] Mon, 05 July 2010 13:29 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: July 2010
Junior Member
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 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 983
Registered: July 2009
Senior Member
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
Previous Topic:RSE using Telnet instead of SSH
Next Topic:RSE installation failed
Goto Forum:
  


Current Time: Sat Aug 30 04:38:34 EDT 2014

Powered by FUDForum. Page generated in 0.12921 seconds