> Ubuntu >

Ubuntu下的SSH翻墙配置

在Dreamhost购买空间后,配置的用户都支持 Shell SSH/SFTP, 利用SSH通道来做代理实在是速度/性能无与伦比的翻墙利器。至于为什么要翻墙?你懂的...

Windows下我一般用SecureCRT, 但ubuntu linux环境还真不了解,搜索了一下,找到了解决方案:

 

 

在ubuntu里 可以直接在终端窗口使用ssh命令,不用特别安装软件

 
1 ssh -qTfnN -D 7070 yourname@yourhostname

yourhostname 是你ssh的服务器地址,比如 ssh.jems.me

name 是你的用户名

7070为选用的端口号

参数如下

 
1 -q :- be very quite, we are acting only as a tunnel.
2 -T :- Do not allocate a pseudo tty, we are only acting a tunnel.
3 -f :- move the ssh process to background, as we don’t want to interact with this ssh session directly.
4 -N :- Do not execute remote command.
5 -n :- redirect standard input to /dev/null.

在终端运行 运行后输入以下 yes 回车 然后输入你的ssh密码  接下来 在浏览器设置你的代理就行了 和windows运行好ssh软件是一样的操作

Firefox浏览器端代理插件可以选择 FoxyProxyPro 支持多模板/白名单黑名单。记得代理类型要选 Socks5 哦

我喜欢chrome chrome可以使用Proxy Switchy! 扩展

扩展的设置和xp里一样,一开始默认填127.0.0.1就可以,没问题,

使用通过



(责任编辑:IT)