我正在尝试将SSH隧道用于文本编辑器集成。
首先连接到networking的命令:
$ ssh -v -R *:52693:localhost:52693 primary_gate_server
第二个shell命令连接到特定的服务器:
$ ssh -vvv -t -R *:52693:localhost:52693 specific_server
尝试从networking中检查telnet的结果:
[person@specific_server ~]$ telnet localhost 52693 debug3: receive packet: type 90 debug1: client_input_channel_open: ctype forwarded-tcpip rchan 4 win 2097152 max 32768 debug1: client_request_forwarded_tcpip: listen port 52693, originator 127.0.0.1 port 46557 debug2: fd 9 setting O_NONBLOCK debug2: fd 9 setting TCP_NODELAY debug1: connect_next: host localhost ([::1]:52693) in progress, fd=9 debug3: fd 9 is O_NONBLOCK debug3: fd 9 is O_NONBLOCK debug1: channel 1: new [127.0.0.1] debug1: confirm forwarded-tcpip debug3: channel 1: waiting for connection debug1: channel 1: connection failed: Connection refused debug2: fd 10 setting O_NONBLOCK debug2: fd 10 setting TCP_NODELAY debug1: connect_next: host localhost ([127.0.0.1]:52693) in progress, fd=10 debug3: channel 1: waiting for connection Trying 127.0.0.1... debug1: channel 1: connection failed: Connection refused connect_to localhost port 52693: failed. debug3: send packet: type 92 debug2: channel 1: zombie debug2: channel 1: garbage collecting debug1: channel 1: free: 127.0.0.1, nchannels 2 debug3: channel 1: status: The following connections are open: #0 client-session (t4 r2 i0/0 o0/0 fd 6/7 cc -1) Connected to localhost. Escape character is '^]'. Connection closed by foreign host.
这相同的testing在其他机器上工作正常,但不是这个特定的用户/机器,所以我想知道这是否与操作系统/用户有关?