<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>only you &#187; ssh</title>
	<atom:link href="http://onlyn.info/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://onlyn.info</link>
	<description>你，一会看我，一会看云。 我觉得，你看我时很远，你看云时很近。</description>
	<lastBuildDate>Sun, 14 Aug 2011 15:39:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>制作不用密码可立即登入的 ssh 用户</title>
		<link>http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/</link>
		<comments>http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 14:32:48 +0000</pubDate>
		<dc:creator>coodar</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[随感]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://onlyn.info/?p=163</guid>
		<description><![CDATA[<a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/" title="制作不用密码可立即登入的 ssh 用户"></a>如果在ubuntu下用ssh命令登录主机的话，总是会要求你输入密码，那么有什么法子可以不用密码直接登录呢？ 原先我用的是在主机cpanel的ssh-key manage里，先创建一个key，然后下载private key，放在ubuntu下的~/.ssh目录下，这样即可。 如图： 第二种方法就是在ubuntu本地创建key，然后上传到sever上。 首先，先在 Client 上面创建 Public Key 跟 Private Key 这两把钥匙，利用的指令为 ssh-keygen 这个命令；再来，将 Private Key 放在 Client 上面的家目录，亦即 $HOME/.ssh/ ， 并且修改权限为仅有该 User 可读的状态； 最后，将那把 Public Key 放在任何一个您想要用来登录的主机的 Server 端的某 User 的家目录内之 .ssh/ 里面的认证文件即可完成整个程序。 测试一下。输入 ssh test@linux。 &#8230;<p class="read-more"><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/" title="制作不用密码可立即登入的 ssh 用户"></a><p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } -->如果在<span style="font-family: AR PL UMing CN,serif;">ubuntu</span>下用<span style="font-family: AR PL UMing CN,serif;">ssh</span>命令登录主机的话，总是会要求你输入密码，那么有什么法子可以不用密码直接登录呢？</p>
<p>原先我用的是在主机<span style="font-family: AR PL UMing CN,serif;">cpanel</span>的<span style="font-family: AR PL UMing CN,serif;">ssh-key manage</span>里，先创建一个<span style="font-family: AR PL UMing CN,serif;">key</span>，然后下载<span style="font-family: AR PL UMing CN,serif;">private key</span>，放在<span style="font-family: AR PL UMing CN,serif;">ubuntu</span>下的<span style="font-family: AR PL UMing CN,serif;">~/.ssh</span>目录下，这样即可。</p>
<p>如图：</p>
<p><a class="tt-flickr tt-flickr-Large" title="cpanel ssh" href="http://www.flickr.com/photos/coodar/4271703542/"><img class="alignnone" src="http://farm5.static.flickr.com/4016/4271703542_930df72ce5_o.png" alt="cpanel ssh" width="749" height="396" /></a></p>
<p>第二种方法就是在ubuntu本地创建key，然后上传到sever上。</p>
<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<ol>
<li>首先，先在 <span style="font-family: AR PL UMing CN,serif;">Client </span>上面创建 <span style="font-family: AR PL UMing CN,serif;">Public Key </span>跟 	<span style="font-family: AR PL UMing CN,serif;">Private Key </span>这两把钥匙，利用的指令为 	<span style="font-family: AR PL UMing CN,serif;">ssh-keygen </span>这个命令；再来，将 <span style="font-family: AR PL UMing CN,serif;">Private 	Key </span>放在 <span style="font-family: AR PL UMing CN,serif;">Client </span>上面的家目录，亦即 <span style="font-family: AR PL UMing CN,serif;">$HOME/.ssh/ </span>， 并且修改权限为仅有该 <span style="font-family: AR PL UMing CN,serif;">User </span>可读的状态；
<p><a class="tt-flickr tt-flickr-Large" title="创建key" href="http://www.flickr.com/photos/coodar/4271704228/"><img class="alignnone" src="http://farm5.static.flickr.com/4061/4271704228_9aa6878cac_o.png" alt="创建key" width="616" height="350" /></a></li>
<li>最后，将那把 <span style="font-family: AR PL UMing CN,serif;">Public 	Key </span>放在任何一个您想要用来登录的主机的 	<span style="font-family: AR PL UMing CN,serif;">Server </span>端的某 <span style="font-family: AR PL UMing CN,serif;">User </span>的家目录内之 <span style="font-family: AR PL UMing CN,serif;">.ssh/ </span>里面的认证文件即可完成整个程序。<a class="tt-flickr tt-flickr-Large" title="上传公钥" href="http://www.flickr.com/photos/coodar/4271704446/"><img class="alignnone" src="http://farm3.static.flickr.com/2746/4271704446_0f0d181e42_o.png" alt="上传公钥" width="577" height="190" /></a></li>
<li>测试一下。输入 ssh test@linux。</li>
</ol>
<p>注释：test为你的id。test2是你的ubuntu机器名字。linux就是主机服务器地址了。上图中192.168.0.2是主机ip地址，写域名也行。</p>
<p>两种方法都可以，任选一个。如果你喜欢命令行就用第二种方法吧。呵呵。</p>
<p>可具体参考<a href="http://onlyn.info/zdc">鸟哥的linux私房菜</a>。</p>
<hr /><h2>Comments</h2><ul><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月13日</a>, <a href='http://zhaolianlin.com' rel='external nofollow' class='url'>JasonChao</a> writes: 图片都显示不出来，呵呵</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月13日</a>, <a href='http://obugs.net' rel='external nofollow' class='url'>第三眼</a> writes: 方法不错，图片需翻墙，flickr，哎</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月13日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 哎，我一天到晚都是开着ssh的，谁知道flickr居然挂了。
万恶的gfw啊，我blog里所有图片都放在flickr上了。
难道真的要把图片放在国内？我怕哪天公司挂了，链接又失效。
难啊！</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月13日</a>, <a href='http://obugs.net' rel='external nofollow' class='url'>第三眼</a> writes: 除了flickr之外还有很多选择嘛，国外的会挂是必然的，这是大势所趋</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月13日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 支持外链的不多阿。有啥推荐的吗？</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月14日</a>, <a href='http://joyla.srt24.idcwind.net/' rel='external nofollow' class='url'>joyla</a> writes: 这个我要学习！呵呵！</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月14日</a>, <a href='http://www.awuit.com' rel='external nofollow' class='url'>阿吴</a> writes: 我还可以看到图片</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月14日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 可能是flickr又解封了。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月14日</a>, <a href='http://obugs.net' rel='external nofollow' class='url'>第三眼</a> writes: photobucket 或者 tinypic</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月14日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 不错，我之所以用flickr就是它的扩展性强点，wordpress有一个插件Flickr Photo Album很方便，可以直接调取flickr的图片插入post，就不用自己复制粘贴外链了。
现在可以考虑换换了。呵呵。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月15日</a>, <a href='http://shuaige.me' rel='external nofollow' class='url'>ShuaiGe.Me</a> writes: Flickr，我们俩都杯具了。。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月16日</a>, <a href='http://blog.zhengyuzhong.com' rel='external nofollow' class='url'>羽中</a> writes: flickr现在可以访问啊？只是外链被墙。。？SSH至今搞不懂是啥 - -</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月18日</a>, <a href='http://mulnim.com' rel='external nofollow' class='url'>mulnim</a> writes: ubuntu 到现在我还没玩转呢。。。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月19日</a>, <a href='http://littlebear.dyndns.org' rel='external nofollow' class='url'>littlebear</a> writes: 不是自动加入的吗？ 怎么你弄的那么复杂啊？</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月19日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 自动加入？连上ssh要嘛密码，要嘛key，只有这两种。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月19日</a>, <a href='http://blog.okkey.net' rel='external nofollow' class='url'>Kada</a> writes: 博主对UBUNTU也有研究啊！</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月19日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 正在用着呢。也谈不上研究。呵呵。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月20日</a>, <a href='http://www.softjie.cn' rel='external nofollow' class='url'>popo</a> writes: 软件街前来围观</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月23日</a>, <a href='http://www.9sh.net' rel='external nofollow' class='url'>仁心博客</a> writes: 研究研究一下</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年01月25日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: ssh，简单的说就是一种安全的传输模式，gfw就不能拦截了，所以用作翻墙。
类似于https。</li><li><a href="http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/">2010年02月3日</a>, <a href='http://www.lokers.cn' rel='external nofollow' class='url'>loker</a> writes: 看不到图</li></ul><hr /><small>Copyright &copy; 2010<br /> 知识共享署名-非商业性使用-禁止演绎 注意：转载勿改标题！onlyn.info--rakugun's blog<br /> (Digital Fingerprint: 1ba59ab30894d0f79b8c2512199bf0bc)</small><br />
 欢迎关注<a href="http://twitter.com/coodar" title="我的微博">我的微博</a> 访问<a href="http://www.google.com/reader/shared/coodar" title="我的分享">我的分享</a>
]]></content:encoded>
			<wfw:commentRss>http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>google退出中国</title>
		<link>http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/</link>
		<comments>http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 05:55:01 +0000</pubDate>
		<dc:creator>coodar</dc:creator>
				<category><![CDATA[随感]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[退出]]></category>

		<guid isPermaLink="false">http://onlyn.info/?p=161</guid>
		<description><![CDATA[<a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/" title="google退出中国"></a>老早就有传闻说google要退出中国了，但是一直不怎么相信，毕竟投入了那么多，一下子撤出代价太大了。现在在地铁里还能看到G.cn的广告呢。但是今天一看twitter，上面已经全是google退出中国的推了。最后在google官方博客上看到了原文，才真的相信了。原文链接，需翻墙：A new approach to China TG这回做过分了，为什么要做出这么下作的事，居然攻击gmail，就为了获取人权活动人士的信件，就像qq聊天记录也能公开向腾讯索要，然后判罪。而腾讯真的没骨气还真给了，完全没有尊重用户的隐私权嘛。google不作恶的原则肯定让TG碰了满鼻子灰。只能做起这种偷鸡摸狗的事来了。 在公开信里，google也说如果不能停止对google.cn的搜索检查，就直接退出中国了。 早就对天朝的政治形态看不下去了，不过也只是偶尔上推看看，只是心里不爽，偶尔骂上两句。但现在的情形真的很不乐观，重庆是一夜变成了红色，internet变成了Intranet，打压异见人士，没有言论自由。德先生已经离我们越来越远了，而中国几千年的专制却越来越强大，悲哀啊。 我不知道google退出中国会对我产生什么影响，其实我是一直不用google.cn的，现在比较喜欢的就谷歌音乐搜索了。 我要用google reader，谷歌首页也没链接，youtube被封了，最可恶的是居然连gmail也没有。还有什么GAE、docs等等一概没有。 因此我只用google.com in English。 如果google真的退出中国，对我应该没啥影响。反正google的服务器一直都没有部署在中国。速度影响也不大。 要民主是需要付出代价的，台湾的民主也不是一帆风顺的，施明德被关在牢里多少年，戒严前后发生了多少流血事件，翻翻维基百科就知道。 而你如果不想生活在墙内，那只有一个路径，翻墙越狱。 翻墙的法子很多，而免费的大都不稳定，而且封杀的比较容易，像商业版的puff，还有很多卖ssh帐号的，如果要封杀他们，代价就要高出很多。而ssh也是最一劳永逸的，除非你买的主机挂了。 我以前也用过很多免费的，但是经常被封杀，经常折腾找翻墙软件，这个代价还不如花点钱，有个专属于你的ssh帐号，要想自由，付出点钱就能搞定，算是很幸运的了，最可怕的是你想花钱买，也买不到，那时候就是真正的白色恐怖了。 唠唠叨叨这么多，只想说google，做得好，何必同流合污呢。中国柏林墙的倒塌，总有一天会到来的。到时候，我们会欢迎你再回来的。 Don&#8217;t be evil. Comments2010年01月13日, JasonChao writes: 退出也好，省的一直看老大哥脸色2010年01月13日, 第三眼 writes: 强烈支持退出。2010年01月13日, 阿吴 writes: 退出吧，全球化运营2010年01月13日, 薛芒 writes: Google是互联网迄今为止最伟大的公司，没有之一。2010年01月13日, ii writes: Google，我支持你走2010年01月13日, Jeff &#8230;<p class="read-more"><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/" title="google退出中国"></a><p>老早就有传闻说google要退出中国了，但是一直不怎么相信，毕竟投入了那么多，一下子撤出代价太大了。现在在地铁里还能看到G.cn的广告呢。但是今天一看twitter，上面已经全是google退出中国的推了。最后在google官方博客上看到了原文，才真的相信了。原文链接，需翻墙：<a href="http://googleblog.blogspot.com/2010/01/new-approach-to-china.html">A new approach to China</a></p>
<p>TG这回做过分了，为什么要做出这么下作的事，居然攻击gmail，就为了获取人权活动人士的信件，就像qq聊天记录也能公开向腾讯索要，然后判罪。而腾讯真的没骨气还真给了，完全没有尊重用户的隐私权嘛。google不作恶的原则肯定让TG碰了满鼻子灰。只能做起这种偷鸡摸狗的事来了。</p>
<p>在公开信里，google也说如果不能停止对google.cn的搜索检查，就直接退出中国了。</p>
<p>早就对天朝的政治形态看不下去了，不过也只是偶尔上推看看，只是心里不爽，偶尔骂上两句。但现在的情形真的很不乐观，重庆是一夜变成了红色，internet变成了Intranet，打压异见人士，没有言论自由。德先生已经离我们越来越远了，而中国几千年的专制却越来越强大，悲哀啊。</p>
<p>我不知道google退出中国会对我产生什么影响，其实我是一直不用google.cn的，现在比较喜欢的就谷歌音乐搜索了。</p>
<p>我要用google reader，谷歌首页也没链接，youtube被封了，最可恶的是居然连gmail也没有。还有什么GAE、docs等等一概没有。</p>
<p>因此我只用google.com in English。</p>
<p>如果google真的退出中国，对我应该没啥影响。反正google的服务器一直都没有部署在中国。速度影响也不大。</p>
<p>要民主是需要付出代价的，台湾的民主也不是一帆风顺的，施明德被关在牢里多少年，戒严前后发生了多少流血事件，翻翻维基百科就知道。</p>
<p>而你如果不想生活在墙内，那只有一个路径，翻墙越狱。</p>
<p>翻墙的法子很多，而免费的大都不稳定，而且封杀的比较容易，像商业版的puff，还有很多卖ssh帐号的，如果要封杀他们，代价就要高出很多。而ssh也是最一劳永逸的，除非你买的主机挂了。</p>
<p>我以前也用过很多免费的，但是经常被封杀，经常折腾找翻墙软件，这个代价还不如花点钱，有个专属于你的ssh帐号，要想自由，付出点钱就能搞定，算是很幸运的了，最可怕的是你想花钱买，也买不到，那时候就是真正的白色恐怖了。</p>
<p>唠唠叨叨这么多，只想说google，做得好，何必同流合污呢。中国柏林墙的倒塌，总有一天会到来的。到时候，我们会欢迎你再回来的。</p>
<p>Don&#8217;t be evil.</p>
<p><a class="tt-flickr tt-flickr-Medium" title="don't be evil" href="http://www.flickr.com/photos/coodar/4271061670/"><img class="alignnone" src="http://farm3.static.flickr.com/2458/4271061670_fa2b83d85f.jpg" alt="don't be evil" width="500" height="387" /></a></p>
<hr /><h2>Comments</h2><ul><li><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">2010年01月13日</a>, <a href='http://zhaolianlin.com' rel='external nofollow' class='url'>JasonChao</a> writes: 退出也好，省的一直看老大哥脸色</li><li><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">2010年01月13日</a>, <a href='http://obugs.net' rel='external nofollow' class='url'>第三眼</a> writes: 强烈支持退出。</li><li><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">2010年01月13日</a>, <a href='http://www.awuit.com' rel='external nofollow' class='url'>阿吴</a> writes: 退出吧，全球化运营</li><li><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">2010年01月13日</a>, <a href='http://www.niphanin.net' rel='external nofollow' class='url'>薛芒</a> writes: Google是互联网迄今为止最伟大的公司，没有之一。</li><li><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">2010年01月13日</a>, ii writes: Google，我支持你走</li><li><a href="http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/">2010年01月13日</a>, <a href='http://www.jeffpan.cn' rel='external nofollow' class='url'>Jeff Pan</a> writes: 退吧，反正我也不常用谷歌。</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/" rel="bookmark" title="Permanent Link: Chrome ssh+privoxy代理上twitter">Chrome ssh+privoxy代理上twitter</a></li><li><a href="http://onlyn.info/2010/03/27/android-and-milestone/" rel="bookmark" title="Permanent Link: Android and milestone">Android and milestone</a></li></ul><hr /><small>Copyright &copy; 2010<br /> 知识共享署名-非商业性使用-禁止演绎 注意：转载勿改标题！onlyn.info--rakugun's blog<br /> (Digital Fingerprint: 1ba59ab30894d0f79b8c2512199bf0bc)</small><br />
 欢迎关注<a href="http://twitter.com/coodar" title="我的微博">我的微博</a> 访问<a href="http://www.google.com/reader/shared/coodar" title="我的分享">我的分享</a>
]]></content:encoded>
			<wfw:commentRss>http://onlyn.info/2010/01/13/google%e9%80%80%e5%87%ba%e4%b8%ad%e5%9b%bd/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Chrome ssh+privoxy代理上twitter</title>
		<link>http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/</link>
		<comments>http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 05:02:46 +0000</pubDate>
		<dc:creator>coodar</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[privoxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/</guid>
		<description><![CDATA[<a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/" title="Chrome ssh+privoxy代理上twitter"></a>由于chrome出了插件中心，chrome终于有了与firefox叫板的重要力量。一直是firefox拥甭的我，用的是firefox，主题却是chromifox basic，向往chrome已久矣。然而刚出来的chrome除了界面清新点外，其实和firefox差距还是挺大的。 像我要想翻墙，就得用autoproxy+ssh。还有最常用的xmarks同步书签。以及IETAB打开不兼容firefox的网页。用gmailchecker查看邮件等等。 由于chrome的代理设置是用IE的，所以有些东西在firefox上能用的，反而在chrome行不通。 本来我使用chrome插件中心的switchy设置的，网上有人说只要在IE局域网设置里的套接字填写ssh端口号127.0.0.1：7070即可。也确实能打开一些被封的网站，但是像twitter、facebook等网站还是打不开，所以我就怀疑是不是ie设置有问题，因为在firefox下是能用的。后来看到一篇博文说，ie是不支持socks5的，所以ip不是通过ssh服务器查询，而是通过本地的运营商dns服务器，即使你在连接属性里改了dns服务器，也无济于事。 终于功夫不负有心人，找到了SSH+Privoxy组建http代理服务器的博文。 转载自http://onlyn.info/lty 原理： 内网主机 – Privoxy – MyEnTunnel – SSH – 能连接外网的主机 – 外网 准备： 1、一台局域网内能连接上SSH，并且可以访问外网的主机。 2、Privoxy 3、MyEnTunnel 或 PUTTY（完全包） 配置： 1、用MyEnTunnel 或 PUTTY（完全包）连接服务器，开启socks5代理到本地 127.0.0.1:7070。 2、配置Privoxy，找到“listen-address ”这一行，去掉注释，后面修改为127.0.0.1:8080。再找到“forward-socks5 / 127.0.0.1:7070 .”这一行，将后面IP:端口修改为SSH开启的端口。 3、重启Privoxy。 配置完成，本地http代理端口为8080，socks5代理端口为7070. //被Privoxy的config.txt给搞糊涂了。看见满篇都是#注释符，一定要在没有注释符的地方改。呵呵。 现在已成功在chrome下运用ssh了。 用了autoproxy2pac来设置那些该用ssh，哪些不该用。这样对浏览速度是有很大改善的。 &#8230;<p class="read-more"><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/" title="Chrome ssh+privoxy代理上twitter"></a><p>由于chrome出了插件中心，chrome终于有了与firefox叫板的重要力量。一直是firefox拥甭的我，用的是firefox，主题却是chromifox basic，向往chrome已久矣。然而刚出来的chrome除了界面清新点外，其实和firefox差距还是挺大的。</p>
<p>像我要想翻墙，就得用autoproxy+ssh。还有最常用的xmarks同步书签。以及IETAB打开不兼容firefox的网页。用gmailchecker查看邮件等等。</p>
<p>由于chrome的代理设置是用IE的，所以有些东西在firefox上能用的，反而在chrome行不通。</p>
<p>本来我使用chrome插件中心的switchy设置的，网上有人说只要在IE局域网设置里的套接字填写ssh端口号127.0.0.1：7070即可。也确实能打开一些被封的网站，但是像twitter、facebook等网站还是打不开，所以我就怀疑是不是ie设置有问题，因为在firefox下是能用的。后来看到一篇博文说，ie是不支持socks5的，所以ip不是通过ssh服务器查询，而是通过本地的运营商dns服务器，即使你在连接属性里改了dns服务器，也无济于事。</p>
<p>终于功夫不负有心人，找到了SSH+Privoxy组建http代理服务器的博文。</p>
<p>转载自<a title="http://onlyn.info/lty" href="http://onlyn.info/lty">http://onlyn.info/lty</a></p>
<p>原理：</p>
<p>内网主机 – Privoxy – MyEnTunnel – SSH – 能连接外网的主机 – 外网</p>
<p>准备：</p>
<p>1、一台局域网内能连接上SSH，并且可以访问外网的主机。<br />
2、<a href="http://www.privoxy.org/">Privoxy<br />
</a>3、MyEnTunnel<a href="http://www.privoxy.org/"> </a>或 <a href="http://www.privoxy.org/"></a><a href="http://www.putty.org/">PUTTY（完全包）<br />
</a></p>
<p>配置：</p>
<p>1、用MyEnTunnel<a href="http://www.privoxy.org/"> </a>或 <a href="http://www.putty.org/">PUTTY（完全包）</a>连接服务器，开启socks5代理到本地 127.0.0.1:7070。<br />
2、配置<a href="http://www.privoxy.org/">Privoxy</a>，找到<code>“listen-address </code>”这一行，去掉注释，后面修改为127.0.0.1:8080。再找到“forward-socks5 / 127.0.0.1:7070 .”这一行，将后面IP:端口修改为SSH开启的端口。<br />
3、重启<a href="http://www.privoxy.org/">Privoxy</a>。</p>
<p>配置完成，本地http代理端口为8080，socks5代理端口为7070.</p>
<p>//被Privoxy的config.txt给搞糊涂了。看见满篇都是#注释符，一定要在没有注释符的地方改。呵呵。</p>
<p>现在已成功在chrome下运用ssh了。</p>
<p>用了<a href="http://onlyn.info/f85" target="_blank">autoproxy2pac</a>来设置那些该用ssh，哪些不该用。这样对浏览速度是有很大改善的。</p>
<p>autoproxy2pac设置方法具体可看<a href="http://onlyn.info/3xu">autoproxy官方博客</a>中的介绍:</p>
<p>在 <a title="这篇文章" href="https://autoproxy.org/zh-CN/node/61">这篇文章</a> 中，我们让 Chrome 在 Switchy 的帮助下用上了 <a href="https://autoproxy2pac.appspot.com/">AutoProxy2PAC</a> 所提供的 PAC 文件。但是，仍然存在以下一些问题：</p>
<ul>
<li>无法自动更新订阅文件</li>
<li>每次更换代理都需要直接修改 PAC 文件</li>
<li>由于 Switchy 当时只支持修改 LAN 模式的代理, 导致直接拨号的用户无法使用</li>
</ul>
<p>Switchy 扩展更新到了 <a href="http://code.google.com/p/switchy/wiki/ChangeLog">1.5.0</a> 之后，提供了基于 <a href="http://code.google.com/p/switchy/wiki/RuleList">这个</a> 的列表匹配功能。甚至还提供了一个 “AutoProxy Compatible” 的选项，可以直接使用 AutoProxy 的 gfwList，真正解决了这些问题。</p>
<p>1、在 <a href="https://chrome.google.com/extensions/detail/caehdcpeofiiigpdhbabniblemipncjj">这里</a> 安装 Switchy 扩展，打开设置，首先创建一个 Proxy Profile，命名后输入地址和端口并保存。记住，不要使用 “Automatic Configuration”。<br />
PS，虽然现在的 Chrome 已经支持了 Socks 代理，但我个人还是建议大家在使用 SSH/Tor 的时候尽量搭配 Privoxy 转换为 http 代理使用。</p>
<p>2、进入 Switch Rules 选项卡，设置 gfwlist 的 URL 为 <a title="http://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt" href="http://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt">http://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt</a> 。记得要勾选 “AutoProxy Compatible List”，以及一定要将 “Reload Every” 设为 15 Minutes，这是由于目前的 Switchy 还不是十分成熟，第一次必须使用这个选项才能正确载入列表。你可以点击 “Error Log” 来查看有没有出错，没有出错再修改为更长的时间。</p>
<p>3、旧版本的 Switchy 只能修改局域网设置的代理，在 <a href="http://code.google.com/p/switchy/wiki/ChangeLog">1.4.0</a> 中添加了为拨号连接设置代理的功能，可以在 “Network” 选项卡中勾选 “Proxy for VPN/Dial-up” 并选择连接来实现。</p>
<p>4、确认下正在使用的是 “Auto Switch Mode”。</p>
<p>由于 Chrome 的天生限制，Switchy 和 PAC 文件一样都是通过修改系统代理设置来实现选择性代理的，这不可避免会有一定的局限性。大多数情况下，您的 Switchy 插件应该能正常工作。如果有问题的话，请先尝试重启 Chrome 和计算机。如果还不行，推荐使用<a id="m9w1" title="旧方法" href="https://autoproxy.org/zh-CN/node/61">旧方法</a>。</p>
<p><span style="color: #ff0000;">update</span>：由于switchy更新，截图不一样了，但是原理是一样的。重新截图：</p>
<p><a href="http://onlyn.info/wp-content/uploads/2009/12/switchy.png"><img title="switchy" src="http://onlyn.info/wp-content/uploads/2009/12/switchy.png" alt="" width="639" height="350" /></a></p>
<p><a href="http://onlyn.info/wp-content/uploads/2009/12/switchy-rules.png"><img title="switchy rules" src="http://onlyn.info/wp-content/uploads/2009/12/switchy-rules.png" alt="" width="639" height="339" /></a></p>
<p><img src="http://farm3.static.flickr.com/2697/4172947973_08620f2ed7_b.jpg" alt="" width="640" height="400" /></p>
<p>终于可以用chrome登上twitter了。纪念一下。follow me @coodar</p>
<hr /><h2>Comments</h2><ul><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2009年12月28日</a>, <a href='http://blog.zhengyuzhong.com' rel='external nofollow' class='url'>羽中</a> writes: SSH还好用不？怎么能搞到帐号。。</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2009年12月29日</a>, rakugun writes: 嗯，ssh是所有翻墙方法中最一劳永逸的，我的ssh是买空间的时候自带的。</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2009年12月31日</a>, <a href='http://5haolou.com' rel='external nofollow' class='url'>wuming</a> writes: 嗯，ssh好，加密传输安全</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年01月1日</a>, Vincent writes: 我使了Switchy! 现在最新版的Opitons和你的截图不一样了. manual和automatic分开的. 现在怎么设置啊? 他自带了Switch Rules. 囧.</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年01月1日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 我没更新switchy，不好意思。</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年01月20日</a>, mumo806 writes: privoxy的config文件修改后会出错，能把你的发到我邮箱吗</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年01月20日</a>, mumo806 writes: config文件</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年01月20日</a>, <a href='http://onlyn.info' rel='external nofollow' class='url'>coodar</a> writes: 好的。明天上班后发给你。在公司电脑上呢。</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年01月21日</a>, mumo806 writes: 谢了</li><li><a href="http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/">2010年07月25日</a>, <a href='http://xijie.wordpress.com/2010/07/25/%e7%bf%bb%e5%a2%99%e6%96%b9%e5%bc%8f%e5%b0%8f%e6%b1%87%e6%80%bb/' rel='external nofollow' class='url'>翻墙方式小汇总 | 细节的力量</a> writes: [...] SSH代理服务器使用教程 Firefox使用SSH配合autoproxy自动翻山图文教程 Chrome ssh+privoxy代理上twitter [...]</li></ul><hr /><small>Copyright &copy; 2010<br /> 知识共享署名-非商业性使用-禁止演绎 注意：转载勿改标题！onlyn.info--rakugun's blog<br /> (Digital Fingerprint: 1ba59ab30894d0f79b8c2512199bf0bc)</small><br />
 欢迎关注<a href="http://twitter.com/coodar" title="我的微博">我的微博</a> 访问<a href="http://www.google.com/reader/shared/coodar" title="我的分享">我的分享</a>
]]></content:encoded>
			<wfw:commentRss>http://onlyn.info/2009/12/10/chrome-sshprivoxy%e4%bb%a3%e7%90%86%e4%b8%8atwitter/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

