Enabling remote SSH access on OpenWRT 12.09
I don’t recommend enabling remote SSH access to your router, but if you need to, here’s how to do it via the web interface (LuCI):
Configure dropbear
- Go to the System / Administration page.
- Under “SSH Access”, for the default “Dropbear instance”, set “Interface” to “unspecified”.
This will cause dropbear to accept connections on all interfaces.
Open port 22
You still need to open the relevant port in the firewall.
- Go to the Network / Firewall / Traffic Rules.
- Scroll down to the “Open ports on router” section.
- Enter a name for this rule, e.g. “Allow-SSH-WAN”.
- Set “Protocol” to “TCP”.
- Enter “22” as the “External Port”.
- Click “Add”.
- Click “Save and Apply”.
You should now be able to access your router from the WAN side.
Security notes
If you are going to enable external SSH access, you should conside disabling SSH password authentication. You’ll have to add some public SSH keys.