mysql tunnel
$ ssh -L 3306:127.0.0.1:3306 user@example.org
testing
$ mysql -h 127.0.0.1 -uroot -p test
ssh -D 1080 <远程主机地址> or ssh -D 7070 <远程主机地址>
I prefer 1080 to 7070. the reason is 1080 default for SOCKS port.
ssh neo@www.example.com -D 1080
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。