Hi,

I've been trying, the past few days, to set up a reverse ssh system to keep
connected to OpenWRT boxes behind NATs.

Actually, it works pretty well most of the time. The problem i've been
fighting with is that sometimes, I get this "ssh_exchange_identification:
Connection closed by remote host" error when I try to connect to the
forwarded port.

The command I use to enable the reverse ssh is something like "ssh -f -N -R
fport:localhost:22 rou...@ghost", used in a shell script that keeps the
connection up.
I can then connect to ghost and ssh localhost on port fport.

This error seems quite common, and the solutions pretty well known.
I've seen things about /etc/host.deny and /etc/host.allow, but these files
are used by sshd, not by dropbear (are they not?)
A lack of memory could also be the problem...

The strange fact is that when I forward the ssh port on the router that
provides NAT to my box, and then try to connect directly to the box, it
works fine in all cases, even when the reverse ssh connection gives me the
identification error... From that point I guess I can forget about the
solutions given above (can I?)

Any idea?

Cheers.

Damien Courtaillier
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to