Created
June 24, 2011 02:37
-
-
Save marshluca/1044115 to your computer and use it in GitHub Desktop.
proxy via ssh tunnel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
用ssh代理来翻墙也很容易,为了避免和自己的管理账户冲突,可以新建一个ssh用户,并且禁用该用户的shell。以下是相关命令: | |
1. groupadd sshfq(增加组sshfq) | |
2. useradd -d /home/sshfq -m -g sshfq -s /bin/false sshfq (增加用户sshfq创建同名目录并属于组sshfq并禁止shell) | |
3. passwd sshfq (修改sshfq密码) | |
4.ssh -qTfnN -D 7070 [email protected] | |
参考:http://www.willacat.com/2011/03/200.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
generate a pac for mac: https://autoproxy2pac.appspot.com/