简体   繁体   中英

channel 3: open failed: connect failed: Connection refused

I am trying to debug a remote application. I have initiated a SOCKS proxy on server: ssh -D 9999 hostname

I then try to connect to it from my eclipse debug setting where hostname is the same and port=9999.

However I get error: channel 3: open failed: connect failed: Connection refused

I have also update eclipse network connections to allow SOCKS proxy. The configuration works on a different host name in the same network.

I am not able to interpret this error message. Can someone please assist where I am going wrong? I looked at this: SSH -L connection successful, but localhost port forwarding not working "channel 3: open failed: connect failed: Connection refused" but did find it useful in my case.

I have initiated my process on remote server in debug mode listening a specific port 4111 I confirmed that debug port is open by netstat -a command

Thank-you

Rather than relying on SOCKS proxying, use

ssh -L4111:localhost:4111 server

To establish a direct connection across the ssh tunnel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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