putty SSH tunnel

来源:互联网 发布:柴静去哪儿了 知乎 编辑:程序博客网 时间:2024/05/17 03:31

参考文献: http://oldsite.precedence.co.uk/nc/putty.html



通过putty client 设置 ,可以 通过tunnel 方式 来实现 远程 服务器 的特定端口访问。

如 要访问远程服务器 ip : 10.68.35.14 , mysql 端口:3306

而此时该服务器的3306端口,没有对外开放,所以可以通过 putty tunnels设置,

把tunnel source port 设置为 6666,

把Destination设置为 localhost:port  如远程服务localhost:3306


这样 你发给 本机的 6666 端口的 消息都会 通过ssh ,发达到 server的 3306端口里,从而实现本机与server的安全通信。





原创粉丝点击