Last active
October 26, 2022 18:55
-
-
Save Weizhang2017/c305861ac485115c74666d041535ea59 to your computer and use it in GitHub Desktop.
Supervisor configuration for ssh tunnel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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