我正在尝试设置一个 ssh 隧道以在我的本地系统上使用 chrome nodejs 调试器。
我的 nodejs 应用程序托管在 Google Compute Engine 上。
这些是我在安全 shell 应用程序上给出的论点:
-L 9229:localhost:9229
SSH 连接有效,但是在填写上面的隧道参数时,我不断在循环中收到以下错误消息:
channel 2: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
我尝试在参数中使用 -nN ,但这甚至不能完全加载我的命令行。
在 chrome 中,网络目标似乎配置正确。
这些是我得到的详细错误:
channel 2: open failed: connect failed: Connection refused
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9229 for localhost port 9229, connect from 127.0.0.1 port 65535 to UNKNOWN port 0, nchannels 4
debug3: channel 2: status: The following connections are open:
#1 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 102/103/104 sock -1 cc -1)
#3 direct-tcpip: listening port 9229 for localhost port 9229, connect from 127.0.0.1 port 65535 to UNKNOWN port 0 (t3 nr0 i0/0 o0/0 e[closed]/0 fd 106/106/-1 sock 106 cc -1)
debug3: receive packet: type 92
channel 3: open failed: connect failed: Connection refused
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9229 for localhost port 9229, connect from 127.0.0.1 port 65535 to UNKNOWN port 0, nchannels 3
debug3: channel 3: status: The following connections are open:
我该如何解决这个问题以及通道错误是什么意思。
如果我将端口更改为 eg-L 9221:localhost:9229
并将 localhost:9221 添加到 chrome 目标发现设置,我可以在其他端口上重现该错误。