Linux下SSH+Firefox
Linux下SSH+Firefox 简明FQ攻略
FQ的软件有很多,楼主原来在Windows下用过Tor(洋葱头)、Puff、freegate等,一般只需要打开FQ软件,简单的设置后就可以FQ浏览了。Linux下我还没用过,google了一下,方法有很多,这里介绍下使用ssh+FirefoxFQ的一种方法。
ssh的应用之一就是做SOCKS5代理, SOCKS5是一个代理协议,它在使用 TCP/IP协议通讯的终端机器和服务器机器之间扮演一个中介角色,使得内部网中的终端机器变得能够访问Internet网中的服务器,或者使通讯更加安全。SOCKS5 服务器通过将终端发来的请求转发给真正的目标服务器, 模拟了一个终端的行为。在这里,终端和SOCKS5之间也是通过TCP/IP协议进行通讯,终端将原本要发送给真正服务器的请求发送给SOCKS5服务器,然后SOCKS5服务器将请求转发给真正的服务器。
具体步骤如下:
第一步,首先需要安装SSH,我用的是CentOS6.2,默认已经安装了SSH,所以pass。
安装之后,确认SSH服务是否开启:
[root@localhost ~]# service sshd status
openssh-daemon (pid 2225) 正在运行...
(这里可以用service sshd start/stop/restart 等去改变服务的状态)
第二步,安装Firefox插件autoproxy。直接在 https://addons.mozilla.org/zh-CN/firefox/addon/autoproxy/ 下载安装,之后点击使用gfwlist策略即可,这个策略是有专人维护的,基本所有常用的被墙网站都列在里面,当然你也可以自定义需要代理的网站,具体方法上面的链接里写的都有。下载安装以后可以在Firefox里看到一个“福”字小标签,如下图所示,它有三种模式:自动、全局、禁用。全局就是为所有访问网站作代理,因为不是访问的所有网站都被墙了,所以很显然没必要,自动就是仅为被墙网站作代理。

图1
根据你用的FQ软件选择默认代理方式,这里显然代理方式为ssh -D。再选择首选项中的编辑服务器,如下图所示,这里默认的是7070端口和socks5代理协议(注意这时还不能浏览墙外网站):

图2
第三步,你需要申请一个ssh账户,在 http://www.cjb.net/cgi-bin/shell.cgi?action=signup 注册一个账户,之后会在你的邮箱里会收到一封确认邮件,点击链接之后等一会儿,会再接收到一封确认邮件,里面包含了你申请的用户名和密码等信息。
第四步,连接SSH服务器。
[root@localhost ~]# ssh -qTfnN -D 7070 username@216.194.70.6 (注意这里的username就是你的用户名,7070是端口号)
接着根据提示,输入你刚才申请账户的密码即可启动服务了。实际上这种方式的FQ是远程登录到作为服务器的主机上,然后借这台能够访问墙外网站的主机访问网页,之后再将信息传递给你。
OK,Enjoy it~虽然网速不会很快。
Mongo DB Study: first face with mongo DB
Mongo DB Study: first face with mongo DB
1. study methods:
1. Translate: I am the mongo DB organization website truck man. And I may use my knowledge to help myself learn more.
2. Practice: only the practice can make me what I have done and what I can do.
2. Ooh, Mongo Db is an open source (c++) no SQL database. This is what I very like it firstly. Next, with the use of it may make me more like it. Expecting!
3. Today is the first use with it.
First we should get it:
www.mongodb.org you can get what you want.
I get the 32-bit r-2.4.4(the newer one, and with the information the even number release is more stable) after download the file, extract into the mongo DB directory like this.

Secondly, I add the mongo into the environment variables; make sure we can use it more quickly with the CMD of the win + R.
Like this:

Thirdly, let’s try it.
With the CMD, first we should point the database path like this:

If you see like this:

Congratulations, you get it. and you can with the IE confirm it.
http://localhost:217017 (mongo use the default port 217017), and you can with the 218017 with more details.
Surely, we can use mongo db now.
With a new CMD. And use command “mongo” start to use the database of mongo.
Insert:
We doesn’t must create a “table”, but we can use the insert method create a collection like this.

Find:
We may want to see what we have inserted. We can use find like the “select” with SQL to find it out.

Update:
We may want to update one item of the collection. Like this:

Remove:
You can remove the item. Like this:

作者:Janne Lee
邮箱:JanneLeeMAC@gmail.com
出处:http://www.cnblogs.com/accipiter/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
该文章也同时发布在我的独立博客中-Accipter'blog。
Linux下SSH+Firefox的更多相关文章
- Linux下SSH免密码登录
转自:http://haitao.iteye.com/blog/1744272 ssh配置 主机A:10.0.5.199 主机B:10.0.5.198 需要配置主机A无密码登录主机A,主机B 先确保所 ...
- linux下ssh端口的修改和登录
linux下ssh端口的修改和登录 首先修改配置文件 vi /etc/ssh/sshd_config 找到#Port 22一段,这里是标识默认使用22端口,添加如下一行: Port 50000 然后保 ...
- Linux 下 SSH 远程超时解决方案
Linux 下 SSH 远程超时解决方案 今天突然看到一个问题说是如何解决SSH远程超时的问题. 找了一点资料.用于解决这个需求~ 第一种:OpenSSH 配置文件设置 位于112行的 "C ...
- 解决Linux下SSH超时自动断开
title: 解决Linux下SSH超时自动断开 comments: false date: 2019-08-19 19:22:55 description: Linux 下 SSH 超时自动断开?? ...
- hadoop搭建杂记:Linux下ssh免密码登陆
关于ssh免密码登陆的问题 关于ssh免密码登陆的问题 linux下可以用ssh-keygen来生成公钥/私钥对 ①生成id_rsa和id_rsa.pub公钥/私钥对,自动在~/.ssh下生成文件(亦 ...
- linux下ssh远程登录/scp远程复制文件/rsync远程同步命令的自动登录
最近需要写一个脚本备份各个服务器上的程序到一个指定服务器上,本来以为查查rsync命令的使用321就能搞定,结果rsync命令要支持自动登 录还是要配置服务和参数,又不确定网上说的配置的行不行,因为都 ...
- Linux下SSH工具 PAC Manager的安装
PAC Manager, Linux下类似SecureCRT Xshell的SSH工具,该工具功能上相当的不错,完全可以代替SecureCRT Xshell的功能. PAC (Perl Auto Co ...
- Linux下 SSH远程管理服务
第1章 SSH基本概述 1.1 SSH服务协议说明 SSH 是 Secure Shell Protocol 的简写,由 IETF 网络工作小组(Network Working Group )制定 在进 ...
- Linux下SSH Session复制
羡慕Windows下secureCRT的Session Copy功能,一直在寻找Linux下类似的软件,殊不知SSH本身就支持此功能. 特别感谢阿干同学的邮件分享. 详细方法 ? 1 2 3 4 Li ...
随机推荐
- Yii Framework2.0开发教程(10)配合mysql数据库实现用户登录
1.首先在mysql创建一个存用户的表格 create table test_user ( user_id bigint(20) unsigned not null auto_increment co ...
- POJ 3067 Japan 树状数组求逆序对
题目大意:有两排城市,这两排城市之间有一些路相互连接着,求有多少条路相互交叉. 思路:把全部的路先依照x值从小到大排序,x值同样的依照y值从小到大排序,然后插入边的时候,先找有多少比自己y值小的,这些 ...
- c语言发挥帕斯卡三角
我们已经确定了帕斯卡三角的规则,下面是我的代码,非常实用哦! !! #include<stdio.h> void main() { int i,j,n,k; sca ...
- CocoaPods在使用中的几个问题
来源: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ 1. 当把CocoaPods生成的workspace移动到上层 ...
- aspnet-webapi-2-contrib
https://github.com/rdingwall/protobuf-net-data https://github.com/mgravell/protobuf-net https://gith ...
- SQL点滴26—常见T-SQL面试解析
原文:SQL点滴26-常见T-SQL面试解析 它山之石可以攻玉,这一篇是读别人的博客后写下的,不是原原本本的转载,加入了自己的分析过程和演练.sql语句可以解决很多的复杂业务,避免过多的项目代码,下面 ...
- Microsoft .NET Pet Shop 简介
最初研究 .NET Pet Shop 的目的是用 Microsoft .NET 实现 Sun 主要的 J2EE 蓝图应用程序 Sun Java Pet Store 同样的应用程序功能. 根据用 .NE ...
- leetcode第13题--Roman to Integer
Problem: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range ...
- microsoft NLayerApp项目中的层次结构图
microsoft NLayerApp项目中的层次结构图 回到目录 如果你想学好一样东西,一定要看高手是如何做的 如果你想学好.net,一定要看.net framworks源代码 如果你想学好分层结构 ...
- helloWord
helloWord!!! 在cnblogs安家了