Hi, I want to control remote machine via reverse ssh tunnel on my openwrt.
REMOTE (the machine I want to control, has ssh on port 22), OWRT_WAN (my openwrt WAN IP, ssh listens on port 2222)
On REMOTE I run
ssh -R 192.168.1.1:55522:localhost:22 root@ORWT_WAN -p 2222
(It says connect to OWRT_WAN on port 2222, listen on OWRT lan_ip:port which is 192.168.1.1:55222 and redirect back to REMOTE's localhost:22
But on OWRT when I run:
netstat -an I see it listens only on 127.0.0.1, not on 192.168.1.1 (lan IP). why?
tcp 0 0 127.0.0.1:55522 0.0.0.0:* LISTEN
From ssh manual:
-R [bind_address:]port:host:hostport
Does openwrt's dropbear ignore the bind_adress?
So on OWRT I can run ssh user@localhost -p 55522 which connects me to REMOTE, but I can not ssh user@192.168.1.1 -p 55522
I know dropbear is a bit different from ssh, is this one of the differencies? Or am I doing something wrong? The goal is to listen on openwrt's lan ip:port, so I can connect from openwrt's lan range to remote machine I want to control. Installing wireguard or other VPN is a bit overkill when I want to do just this. Thank you.