Skip to content

Instantly share code, notes, and snippets.

@beanyoung
Created November 4, 2017 04:12
Show Gist options
  • Save beanyoung/2018f7c3d86b1fcfb43f6e25b1d6c74e to your computer and use it in GitHub Desktop.
Save beanyoung/2018f7c3d86b1fcfb43f6e25b1d6c74e to your computer and use it in GitHub Desktop.
ssh_port_forward.conf
[program:ssh]
command=ssh -vvv -o ServerAliveInterval=30 -o TCPKeepAlive=yes -o ServerAliveCountMax=2 -N -R 0.0.0.0:2222:127.0.0.1:22 YOUR_SERVER_IP
user=chenbingyu
numprocs=1
stopsignal=TERM
autostart=true
startsecs=1
startretries=10
autorestart=true
serverurl=AUTO
redirect_stderr=true
stdout_logfile=/var/log/supervisor/ssh.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/supervisor/ssh-error.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment