<?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>SoleSky &#187; SSH</title>
	<atom:link href="http://www.solesky.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solesky.com</link>
	<description>My love, My life,My soul</description>
	<lastBuildDate>Tue, 15 Jun 2010 14:35:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Play SSH Trick Freely Part 2</title>
		<link>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/</link>
		<comments>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 15:35:01 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1318</guid>
		<description><![CDATA[As we said, we can set up a secure Socket 5connection via SSH tool. Then we make our App. like browsers programs go through it. But,,, not all of the browsers support the Socket 5 proxy method. For example, the new generation Google web browser Chrome doesn&#8217;t support that.
So we have to make it through. [...]]]></description>
			<content:encoded><![CDATA[<p>As we said, we can set up a secure Socket 5connection via SSH tool. Then we make our App. like browsers programs go through it. But,,, not all of the browsers support the Socket 5 proxy method. For example, the new generation Google web browser Chrome doesn&#8217;t support that.</p>
<p>So we have to make it through. First, the Chrome browser does support the common proxy way &#8212; Http proxy. And then, if we can &#8220;translate&#8221; the socket connection into the http connection, then it works!</p>
<p>The solution is to set up a http proxy in our localhost and let it do the job to help those App. to talk to the remote socket proxy. Then comes to the next tool we need, the Privoxy. Yep, we always use this software to help our Tor proxy services smarter. So we can also do it in this way:</p>
<p>Find the configure file of Privoxy : /etc/privoxy/config  (in Ubuntu)<br />
And add this line at the end of the file:</p>
<blockquote><p>forward-socks5 / 127.0.0.1:7070 .</p></blockquote>
<p>  (don&#8217;t miss the &#8220;.&#8221; at the end of line, that make this route complete)</p>
<p>Easy to see that all the date transfer through the 7070 port will &#8220;translate&#8221; into the SSH socket 5 proxy service<br />
Save and exit.</p>
<p>Restart the Privoxy : </p>
<blockquote><p>sudo /etc/init.d/privoxy restart </p></blockquote>
<p>   (in Ubuntu)</p>
<p>And finished&#8230;. All you have to do next is to set up your browser&#8217;s proxy as http proxy: 127.0.0.1:7070    <img src='http://www.solesky.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<p>And BTW, the DNS pollution problem is still needed to be considered.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play SSH Trick Freely</title>
		<link>http://www.solesky.com/2009/11/play-ssh-trick-freely/</link>
		<comments>http://www.solesky.com/2009/11/play-ssh-trick-freely/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 12:47:43 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1254</guid>
		<description><![CDATA[SSH is a very popular tool for remote control under Unix and Linux System. And ssh command is included in most Unix/Linux OS shell by default.
SSH stands for &#8220;security Shell&#8221;, that&#8217;s to say it provides a security access to OS via a &#8220;SHELL&#8221; like interface. So before you wanna play SSH trick, you have to [...]]]></description>
			<content:encoded><![CDATA[<p>SSH is a very popular tool for remote control under Unix and Linux System. And ssh command is included in most Unix/Linux OS shell by default.</p>
<p>SSH stands for &#8220;security Shell&#8221;, that&#8217;s to say it provides a security access to OS via a &#8220;SHELL&#8221; like interface. So before you wanna play SSH trick, you have to own a host as the remote host. Then we can use ssh to access our host safely and manage the machine just like you are in front of it(normally in TEXT mode, of course ).  But there is another way to use SSH tool, let it make a &#8220;tunnel&#8221; for our applications in local host. That means our applications like browsers can connect to the remote host via encrypted messages and the remote host will help them communicate with the destination sites. The result is that our communications become safer and the GFW can&#8217;t block us anymore~  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<p>Let&#8217;s go to own a host first. Be careful, not all the host or VPS provide SSH access. Make sure you are going to own a host with SSH function!  My friend tell me that<a href="http://host-blaster.com/"> host-blaster.com</a> provide free VPS with SSH access, so I visited it and registered a VPS.</p>
<p>Then the second step is to make SSH to dig a tunnel for us.<br />
Input such like command in our local shell terminal:</p>
<blockquote><p>ssh -qTfnN -D 7070 yourname@yourname.host-blaster.com</p></blockquote>
<p>Maybe you use the ssh command before, but those parameters would make you puzzled. Let&#8217;s make them clean first.</p>
<p><span id="more-1254"></span></p>
<p style="padding-left: 30px;">-q:    Quiet mode.  Causes most warning and diagnostic messages to be<br />
suppressed.  Only fatal errors are displayed.  If a second -q is<br />
given then even fatal errors are suppressed, except for those<br />
produced due solely to bad arguments.</p>
<p style="padding-left: 30px;">-T      Disable pseudo-tty allocation.</p>
<p style="padding-left: 30px;">-f      Requests ssh to go to background just before command execution.<br />
This is useful if ssh is going to ask for passwords or<br />
passphrases, but the user wants it in the background.  This<br />
implies -n.  The recommended way to start X11 programs at a<br />
remote site is with something like ssh -f host xterm.</p>
<p style="padding-left: 30px;">-n      Redirects stdin from /dev/null (actually, prevents reading from<br />
stdin).  This must be used when ssh is run in the background.  A<br />
common trick is to use this to run X11 programs on a remote<br />
machine.  For example, ssh -n shadows.cs.hut.fi emacs &amp; will<br />
start an emacs on shadows.cs.hut.fi, and the X11 connection will<br />
be automatically forwarded over an encrypted channel.  The ssh<br />
program will be put in the background.  (This does not work if<br />
ssh needs to ask for a password or passphrase; see also the -f<br />
option.)</p>
<p style="padding-left: 30px;">-N      Do not execute a remote command.  This is useful for just for‐<br />
warding ports (protocol version 2 only).</p>
<p style="padding-left: 30px;">-D [bind_address:]port<br />
Specifies a local “dynamic” application-level port forwarding.<br />
This works by allocating a socket to listen to port on the local<br />
side, optionally bound to the specified bind_address.  Whenever a<br />
connection is made to this port, the connection is forwarded over<br />
the secure channel, and the application protocol is then used to<br />
determine where to connect to from the remote machine.</p>
<p>After that, we have cleaned that mass, this command tell SSH to work in the background and served at 7070 port.</p>
<p>So we go to the final step, make our application work via SSH &#8220;tunnel&#8221; we made just now.</p>
<p>For example, we browse web with Firefox, that all we have to do is to set our proxy setting of FF use the SSH. Then we set the socket proxy setting as</p>
<p>IP: 127.0.0.1(you can use loaclhost too) port: 7070  and click the socket 5 option.</p>
<p>BTW, if the GFW block the sites by DNS pollution, you have to active the FF to use remote dns. Type about:config to active the network.proxy.socks_remote_dns option.</p>
<p>That&#8217;s all, happy SSH life <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/play-ssh-trick-freely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
