beeba / autossh

automatic ssh tunnel wrapper and keep-alive script. Requires ssh, cron and screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autossh

Configuration

edit autossh.sh to configure remotehost, remoteuser and tunnel arguments

for tunnel arguments, use -R for ports on the remotehost to map to services running on the network that autossh is running on. use -L for services on the remote network to map to ports on the system running autossh.

Setup crontab

* * * * * ~/autossh/launchssh.sh

System-wide config

If you want your remote ports to be able to accept connections from the world, you'll probably need to enable GatewayPorts in your remote /etc/ssh/sshd_config file.

add the following line:

GatewayPorts yes

and:

service sshd restart

About

automatic ssh tunnel wrapper and keep-alive script. Requires ssh, cron and screen


Languages

Language:Shell 100.0%