<?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>Gabriel &#187; tunnel</title>
	<atom:link href="http://www.gabrielserafini.com/tags/tunnel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gabrielserafini.com</link>
	<description>Web Design, Development and Business</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:33:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to connect to a VNC machine that is behind a firewall using SSH tunneling, OS X and Chicken of the VNC</title>
		<link>http://www.gabrielserafini.com/blog/2008/06/20/how-to-connect-to-a-vnc-machine-that-is-behind-a-firewall-using-ssh-tunneling-os-x-and-chicken-of-the-vnc/</link>
		<comments>http://www.gabrielserafini.com/blog/2008/06/20/how-to-connect-to-a-vnc-machine-that-is-behind-a-firewall-using-ssh-tunneling-os-x-and-chicken-of-the-vnc/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 22:10:02 +0000</pubDate>
		<dc:creator>Gabriel</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[screen sharing]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.gabrielserafini.com/?p=922</guid>
		<description><![CDATA[VNC is a very useful program for accessing a computer remotely. These are instructions for accessing a remote machine using OS X, Chicken of the VNC, and Vine Server when there is a firewall in the way. Normally it is a fairly straightforward process to connect from a VNC client to a VNC server running [...]]]></description>
			<content:encoded><![CDATA[<p>VNC is a very useful program for accessing a computer remotely.  These are instructions for accessing a remote machine using OS X, Chicken of the VNC, and Vine Server when there is a firewall in the way.</p>
<p><img src="http://www.gabrielserafini.com/wp-content/uploads/vnc_ssh_tunnel.jpg" alt="VNC SSH Tunnel" title="VNC SSH Tunnel" width="497" height="520" class="alignnone size-full wp-image-923" /></p>
<p>Normally it is a fairly straightforward process to connect from a VNC client to a VNC server running on a remote machine.  A firewall in the middle can complicate the process a bit.</p>
<p>Normal:<br />
MY MACHINE -> VNC CLIENT < - -> VNC SERVER < - REMOTE MACHINE</p>
<p>Behind firewall:<br />
REMOTE MACHINE -> VNC SERVER -> SSH TUNNEL < - -> VNC CLIENT < - MY MACHINE</p>
<ol>
<li>On MY MACHINE, create a local SSH user account and password &#8211; call it vnc_user</li>
<li>On MY MACHINE, determine my public IP address &#8211; go to <a href="http://whatismyip.com">whatismyip.com</a> (MY_IP_ADDRESS)</li>
<li>On REMOTE MACHINE, turn on the Vine Server and set the password</li>
<li>On REMOTE MACHINE, open up Terminal and enter the following command:
<p><code>ssh vnc_user@MY_IP_ADDRESS -R 5900:127.0.0.1:5900</code></p>
<p>where MY_IP_ADDRESS is the IP address of MY MACHINE.</li>
<li>Enter the password for the vnc_user.  You should now be connected to MY MACHINE over SSH.</li>
<li>On MY MACHINE, open up Chicken of the VNC.  Connect to <strong>localhost</strong> and enter the password for the REMOTE MACHINE.</li>
<li>You should now be connected to REMOTE MACHINE&#8217;s VNC server and be seeing their screen.</li>
<p><strong>Notes:</strong></p>
<ul>
<li>Make sure that you are not running a VNC server on MY MACHINE, or that it is turned off</li>
<li>If you are running a firewall on your own network, you may need to enable port forwarding for SSH to ensure that SSH requests on port 22 are connected to MY MACHINE and not blocked by your own firewall.</li>
</ul>
<p>Thanks to <a href="http://www.macosxhints.com/article.php?story=20050222062346277">this article</a> that describes how to do this and also includes an Applescript that makes the connection.</p>
<img src="http://www.gabrielserafini.com/?ak_action=api_record_view&id=922&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.gabrielserafini.com/blog/2008/06/20/how-to-connect-to-a-vnc-machine-that-is-behind-a-firewall-using-ssh-tunneling-os-x-and-chicken-of-the-vnc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
