This repository holds files related to a custom systemd service, which establishes arbitrary ssh tunnels and persists them while the service is running.
To install, copy all files from this repository except READMEs to their respective directories, matching project root to filesystem root (/
).
File [email protected]
is a service template. After specifying a host in /etc/ssh-tunnel.conf
, for example example.com-1234
, launch service using service [email protected] start
or enable it at startup using service [email protected] enable
.
Config file /etc/ssh-tunnel.conf
is written as a normal SSH config file.