Initiate a reverse tunnel connection from a remote OpenWRT device

Andreas Zoeller andreaszoeller at yahoo.de
Sun Jan 8 17:46:14 WST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20120108/8ec907e9/attachment.htm 


More information about the Dropbear mailing list