Skip to content

Instantly share code, notes, and snippets.

@marshluca
Created June 24, 2011 02:37
Show Gist options
  • Save marshluca/1044115 to your computer and use it in GitHub Desktop.
Save marshluca/1044115 to your computer and use it in GitHub Desktop.
proxy via ssh tunnel
用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
@marshluca
Copy link
Author

generate a pac for mac: https://autoproxy2pac.appspot.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment