Professional Documents
Culture Documents
Autossh
Autossh
Autossh
wiki.openwrt.org /doc/howto/autossh
Use Case
You want to forward a local port (e.g. the webserver/ssh) to a remote server.
If your client running OpenWrt is behind a NAT, this allows to connect to a server that is not behind a NAT and create a reverse tunnel to the
local ssh server.
Installation
Install autossh
Create a key
dropbearkey will print the public key, starting with ssh-rsa. You can reprint the key using
Add the key to the authorized_keys file on your server. E.g. Copy pubkey file to the server an do
Configuration
Autossh is configured using the Unified Configuration Interface (/etc/config/autossh).
Fixes
To get ssh working you need to replace localhost in 2222:localhost:22 of the ssh variable to the local ip.
1/1