Skip to content

Instantly share code, notes, and snippets.

@Weizhang2017
Last active October 26, 2022 18:55
Show Gist options
  • Save Weizhang2017/c305861ac485115c74666d041535ea59 to your computer and use it in GitHub Desktop.
Save Weizhang2017/c305861ac485115c74666d041535ea59 to your computer and use it in GitHub Desktop.
Supervisor configuration for ssh tunnel
[program:tunnel]
command=ssh -L 5432:localhost:5432 remotehost
directory=/home/john
user=wei
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/tunnel.log
redirect_stderr=true
numprocs=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment