# .ssh/config Host tunnel-notflip Hostname tunnel.notflip.be User root IdentityFile ~/.ssh/id_rsa RemoteForward 20000 localhost:8000 ServerAliveInterval 30 ServerAliveCountMax 3 # .zshrc (or .bashrc) alias tunnel="AUTOSSH_DEBUG=1 autossh -M 0 -T -N tunnel-notflip" # On Server /etc/nginx/sites-available/tunnel.notflip.be server { server_name tunnel.notflip.be; listen 80; location / { proxy_pass http://127.0.0.1:20000; } }