I've got dropbear v2019.78 running on a custom embedded linux 2.6.28.10, on an ARM9
And, I'm trying to setup local port forwarding from my Ubuntu 16.04 desktop (using telnet just for testing):
ssh -g -N -l root -L 2222:myarm9.com:23 root@myarm9.com -vvv
Output of the port forwarding bits:
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
Then, when trying 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:
Output from telnet, which says nothing much:
$ telnet localhost 2222
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
I don't see any interesting output from dropbear itself.
Any ideas on how to debug? Dropbear works OK when using a newer embedded system, running on an Armv7, but on this particular system it's giving me trouble. I've also tried using ssh from a WSL prompt from a Windows machine (exact same story), and also tride putty as a client (lots of output, not sure what's relevant, but still doesn't work)