dropbear 本地端口转发:“通道 2:打开失败:连接失败:”

dropbear 本地端口转发:“通道 2:打开失败:连接失败:”

v2019.78我在 ARM9 上的定制嵌入式 Linux 2.6.28.10 上运行了 dropbear

而且,我正在尝试从我的 Ubuntu 16.04 桌面设置本地端口转发(仅使用 telnet 进行测试):

ssh -g -N -l root -L 2222:myarm9.com:23 [email protected] -vvv

端口转发位的输出:

debug1: Local connections to *:2222 forwarded to remote address myarm9.com:23
debug3: channel_setup_fwd_listener_tcpip: type 2 wildcard 1 addr NULL
debug1: Local forwarding listening on 0.0.0.0 port 2222.
debug2: fd 5 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [port listener]
debug3: sock_set_v6only: set socket 6 IPV6_V6ONLY
debug1: Local forwarding listening on :: port 2222.
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 1: new [port listener]
debug2: fd 4 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Entering interactive session.
debug1: pledge: network

然后,尝试时telnet localhost 2222

debug1: Connection to port 2222 forwarding to myarm9.com port 23 requested.
debug2: fd 7 setting TCP_NODELAY
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug3: send packet: type 90
debug3: receive packet: type 92
channel 2: open failed: connect failed:
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 2222 for myarm9.com port 23, connect from ::1 port 50874 to ::1 port 2222, nchannels 3
debug3: channel 2: status: The following connections are open:

的输出telnet没什么特别:

 $ telnet localhost 2222
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

我没有看到 dropbear 本身有任何有趣的输出。

关于如何调试有什么想法吗?在使用较新的嵌入式系统(运行在 Armv7 上)时,Dropbear 可以正常工作,但在这个特定的系统上它给我带来了麻烦。我也尝试过从 Windows 机器上的 WSL 提示符中使用 ssh(完全​​相同的故事),也尝试过 trideputty作为客户端(输出很多,不确定哪些是相关的,但仍然不起作用)

相关内容