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