Reverse Proxy into Linux via SSH

Instructions to establish a reverse SSH proxy on server startup.

Useful for setting up a server behind gateways/firewalls.


Install SSH keys on the remote and local server.

Note the command should work independently before setting up as a service.

On the remote server you can login via the tunnel


Create a service file /etc/systemd/system/sshtunnel.service containing:

Enable SSH Tunnel Service


Start SSH Tunnel

Get SSH Tunnel Status