openwrt-autossh
openwrt-autossh copied to clipboard
Autossh with LuCI
Autossh for OpenWrt
Install
-
Download a release, then
opkg update opkg install openssh-client opkg install autossh_1.4d-x_xxxxx.ipk
Build
-
If you use other OpenWRT versions, build yourself: cd into SDK root, then
# clone the Makefile git clone https://github.com/aa65535/openwrt-autossh.git package/autossh # select Network -> autossh make menuconfig make package/autossh/compile V=99
Usage
-
Enable PubkeyAuthentication and put your public key to
.ssh/authorized_keys
on server-side. -
If you need to access it from the public network, you need to enable GatewayPorts.
-
Put your private key to
.ssh/id_rsa
on OpenWrt. -
First, manually connect the server in the command line, to write
.ssh/known_hosts
. -
Then, configure and use it.