Monday, August 20, 2007

alternative solution of port forward

ssh的port forward很方便又很不方便,如果网关代理服务器支持nc命令的话,试试这个。
[localhost ~]$ cat .ssh/config
Host 192.168.0.100
ProxyCommand ssh 192.168.0.1 "nc %h %p"

192.168.0.100: 内网目标服务器
192.168.0.1: 网关代理服务器

No comments: