假如你有一个vps,并分配了一个外网ip; 

你先调试你本机程序,通过这个vps的外网ip访问直接指向你本地的开发机,可以建立反向隧道;

一、xshell


win7建立反向隧道
 二、作为vps的服务器,需要配置sshd

vi/etc/ssh/sshd_config

增加一行:

 

  1. GatewayPorts clientspecified
  2. service sshd restart 即可

 

相关文章: