Initiate a reverse tunnel connection from a remote OpenWRT device

Matt Johnston matt at ucc.asn.au
Mon Jan 9 18:31:57 WST 2012


It looks like you're trying to listen on port 7722 for both
the port 22 and port 80 cases? I think anything that works
in OpenSSH should work in Dropbear 2011.54 (at least for
ipv4). 0.53(.1) had bugs with -R forwarding.

Cheers, Matt

On Sun, Jan 08, 2012 at 09:46:14AM +0000, Andreas Zoeller wrote:
> I  try to establish a reverse ssh tunnel. Until now with no success.
> 
> The
>  system i want to access is a Edimax BR6104KP with OpenWRT trunk and 
> dropbear and a Huawei E220 G3-modem. I have acess to the internet.
> 
> My homesystem is using a AVM Fritzbox 7270 which is also running dropbbear as server with "./dropbear -a -E"
> From the BR6104KP i can establish a ssh-connection to the Fritzbox with  "ssh -l root -R 7722:localhost:22 mydomain.org" 
> I have now access from the BR6104KP to the Fritzbox and can execute commands on the Fritzbox's commandline.
> 
> But
>  the purpose is to have a reverse tunnel from the Fritzbox at home to 
> the BR6104KP which will installed at a remote location. So i establish the connection with " ssh -l root -f -N -g -R 7722:localhost:80 mydomain.org", i get the password-request and the connection disappears in the background.
> 
> When i try now 
> to establish this reverse channel from the Fritzbox  to the BR6104KP 
> with "./ssh -p 7722 localhost" i get the following :
> 
> # ./ssh  -p 7722 localhost
> ./ssh: Connection to root at localhost:7722 exited: Remote closed the connection
> #
> 
> Any idea what is the problem ?
> Is it possible to run such a reverse ssh tunnel with dropbear (version 2011.54) as client and server ?
> Or do i need openssh on the server (Fritzbox) ?
> Do i need an additional serverdemon who handles port 22 ? I have also tried to forward port 23 (telnetd is running on the BR6104KP) but with same result.
> 
> Is it possible to forward several ports (e.g. 80 and 22) ?
> 
> best regards
> 
> A. Zoeller


More information about the Dropbear mailing list