/ssh_redirect

A little script to forward a port to remote host

Primary LanguageShellGNU General Public License v2.0GPL-2.0

A little script to make autossh works as a service.

To use:

  1. Install autossh and nc first.
  2. Copy files to /opt/ssh_redirect ,or somewhere you like, but remember to change the script path in service file.
  3. Copy the example config, for example here "website.conf" and edit it.
  4. Copy the ssh_redirect@.service to /lib/systemd/system and execute systemctl daemon-refresh.
  5. Enable or start your daemon using systemctl enable|start ssh_redirect@website.

For details, see the example.conf.