Eclipse SSH隧道-远程调试

Eclipse SSH隧道-远程调试,eclipse,remote-debugging,ssh-tunnel,Eclipse,Remote Debugging,Ssh Tunnel,我可以ssh到服务器,比如说端口22上的abc.xyz,但是我不能在Eclipse中远程调试它。以下是附加信息: 服务器启动参数- -Xdebug -Xrunjdwp:transport=dt_socket,address=1234,server=y,suspend=n 日志确认- Listening for transport dt_socket at address: 1234 当我在本地系统上远程登录时- local-machine% telnet abc-xyz 1234 Tryin

我可以ssh到服务器,比如说端口22上的abc.xyz,但是我不能在Eclipse中远程调试它。以下是附加信息:

服务器启动参数-

-Xdebug -Xrunjdwp:transport=dt_socket,address=1234,server=y,suspend=n
日志确认-

Listening for transport dt_socket at address: 1234
当我在本地系统上远程登录时-

local-machine% telnet abc-xyz 1234
Trying xx.xx.xx.xx...
telnet: connect to address xx.xx.xx.xx: Connection timed out
telnet: Unable to connect to remote host: Connection timed out
当我在服务器abc.xyz上远程登录时-

abc-xyz% telnet localhost 1234
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
我已经试过设置隧道通道-

ssh-L 1234:localhost:1234user@abc-xyz ssh-l1234:127.0.0.1:1234user@abc-xyz 我正在用这个配置在Eclipse中附加调试器-

Connection type - Standard (Socket attach)
Host - localhost
Port - 1234
无法使Eclipse连接到1234

在设置SSH隧道之后,如果我手动尝试连接到端口,我会得到这个响应-

local-machine% telnet localhost 1234
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
我在catalina.out中看到一个条目:

通道4:打开失败:连接失败:连接被拒绝

任何帮助都将不胜感激

编辑-1:

我跑

abc-xyz% ~#
并得到以下输出:

The following connections are open:
  #2 client-session (t4 r0 i0/0 o0/0 fd 7/8 cc -1)
  #3 direct-tcpip: listening port 1234 for localhost port 1234, connect from 127.0.0.1 port 23456 (t4 r1 i0/0 o0/0 fd 10/10 cc -1)

我认为ssh隧道正在工作,这只是我与Eclipse连接的方式出现了问题。

我只是增加了超时时间。可以通过窗口->首选项->Java->调试来完成。将其设置为适当的值