简体   繁体   English

可以eclipse RSE连接到本地端口(ssh隧道)?

[英]Can eclipse RSE connect to a local port (ssh tunneled)?

I am using eclipse with RSE, and it works well connecting to my linux server when I am in the same network, but as the server is behind a firewall with a gate entry, I need to make a ssh tunnelling when outside its network. 我正在使用带有RSE的eclipse,当我在同一个网络时,它可以很好地连接到我的linux服务器,但由于服务器位于带有门入口的防火墙后面,我需要在其网络外部进行ssh隧道。

I have not find a way of adding the local port where I have the tunnel to the host name nor in other places. 我还没有找到一种方法可以将我拥有隧道的本地端口添加到主机名,也无法在其他地方添加。

RSE ssh连接

Is it possible to connect to localhost:port with RSE? 是否可以使用RSE连接到localhost:port?

Finally I found it. 最后我发现了它。

You can not add a port in your initial connection configuration, so the way of doing it is to create a connection to localhost and give a proper name (in order to be able to map more ports later) 您无法在初始连接配置中添加端口,因此执行此操作的方法是创建与localhost的连接并提供正确的名称(以便以后能够映射更多端口)

在此输入图像描述

在此输入图像描述

Then you will see your new resource 然后你会看到你的新资源

在此输入图像描述

Your new connection is done in port 22 but you can change this and the name for the connection in the following steps. 您的新连接在端口22中完成,但您可以在以下步骤中更改此连接和连接的名称。

For changing the user name, click in the resource ('remote_server_1' in this example) and in the properties (the bottom panel) you can change the default userID . 要更改用户名,请单击资源(本示例中为“remote_server_1”),然后在properties (底部面板)中更改default userID

Now the next step is to change the port. 现在下一步是更改端口。 For doing that you need to click either in the node Sftp Files or Ssh Shells 为此,您需要在节点Sftp FilesSsh Shells单击

在此输入图像描述

Go to the port and and change it to the local port where you have previously forwarded your ssh connection. 转到端口,然后将其更改为先前已转发ssh连接的本地端口。

在此输入图像描述

And that's it!, click now in the arrow in My Home or Root and you will be pronpted for your credentials: 就是这样!现在点击My HomeRoot中的箭头,您将获得凭据:

在此输入图像描述

PD: PD:

Just in case you have the same problem for connecting remotely with eclipse, this is what I have installed, the dsdp/tm v 3.2 为了防止与eclipse远程连接有同样的问题,这就是我安装的,dsdp / tm v 3.2

在此输入图像描述

installing the RSE was a bit of trial and error because you need to unselect some packages not related with your architecture like winCE and others. 安装RSE是一个试验和错误,因为您需要取消选择与您的架构无关的一些软件包,如winCE和其他。

在此输入图像描述

These are the packages that I installed in the plugin: 这些是我在插件中安装的软件包:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM