Skip to main content

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 17:29 Go to next message
No real name is currently offline No real nameFriend
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 16:10 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member

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
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.

Previous Topic:Re: cant create a new connection
Next Topic:RSE using Telnet instead of SSH
Goto Forum:

Current Time: Thu May 26 11:58:31 GMT 2022

Powered by FUDForum. Page generated in 0.01894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top