win7建立反向隧道
假如你有一个vps,并分配了一个外网ip;
你先调试你本机程序,通过这个vps的外网ip访问直接指向你本地的开发机,可以建立反向隧道;
一、xshell
二、作为vps的服务器,需要配置sshd
vi/etc/ssh/sshd_config
增加一行:
GatewayPorts clientspecified
- service sshd restart 即可
假如你有一个vps,并分配了一个外网ip;
你先调试你本机程序,通过这个vps的外网ip访问直接指向你本地的开发机,可以建立反向隧道;
一、xshell
二、作为vps的服务器,需要配置sshd
vi/etc/ssh/sshd_config
增加一行:
GatewayPorts clientspecified