autossh -M 4010 -fCNR 远程监听端口:本地IP:本地端口 远程用户账号@远程IP
相关文档:https://my.oschina.net/leejun2005/blog/94401/print
autossh安装
1$ sudo yum install wget gcc make 2$ wget http://www.harding.motd.ca/autossh/autossh-1.4e.tgz 3$ tar -xf autossh-1.4e.tgz 4$ cd autossh-1.4e 5$ ./configure 6$ make 7$ sudo make install
Nginx配置
1location / { 2 proxy_pass http://127.0.0.1:8010; 3}