<?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>Shiki &#187; remote-editing</title>
	<atom:link href="http://shikii.net/blog/tag/remote-editing/feed/" rel="self" type="application/rss+xml" />
	<link>http://shikii.net/blog</link>
	<description>no awesome tagline here</description>
	<lastBuildDate>Thu, 26 Aug 2010 08:41:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Zend Studio (Eclipse) Remote Editing through a secure proxy</title>
		<link>http://shikii.net/blog/zend-studio-eclipse-remote-editing-through-a-secure-proxy/</link>
		<comments>http://shikii.net/blog/zend-studio-eclipse-remote-editing-through-a-secure-proxy/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 15:47:05 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[remote-editing]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[zend-studio]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=11</guid>
		<description><![CDATA[Remote Editing in Zend Studio for Eclipse has to be one of the biggest reasons why I use it in my current job. I work from home and our team&#8217;s development environment is securely setup on a Linux server with a firewall open only to specific IP addresses. This is a no biggie if my [...]]]></description>
			<content:encoded><![CDATA[<p>Remote Editing in Zend Studio for Eclipse has to be one of the biggest reasons why I use it in my current job. I work from home and our team&#8217;s development environment is securely setup on a Linux server with a firewall open only to specific IP addresses. This is a no biggie if my IP address never changes or if I work only in one place. Unfortunately, that&#8217;s not the case for my DSL setup &#8212; I get a different IP address everyday. And since I can&#8217;t bug the server admin every time I need to have my IP address added to the firewall, I connect through our proxy server first and then connect to the main development server. The setup&#8217;s kinda like this:</p>

<p style="text-align: center;"><img class="size-full wp-image-16 aligncenter" title="Local Machine to Proxy Server to Development Server setup" src="http://shikii.net/blog/wp-content/uploads/2009/08/zendstudioproxy.jpg" alt="Local Machine to Proxy Server to Development Server setup" width="640" /></p>

<p>The problem now is Zend Studio doesn&#8217;t seem to support this kind of setup. At least, that&#8217;s what I concluded after so many hours of googling. Then I found this super awesome <a href="http://paulstamatiou.com/how-to-surf-securely-with-ssh-tunnel">article</a>. We can use Putty! Or just plain ol&#8217; Terminal on a Mac (Linux should be the same I think).<span id="more-11"></span></p>

<h2>Tools needed</h2>

<p>Of course you need Zend Studio for Eclipse. You just need <a href="http://www.putty.org/">Putty</a> if you&#8217;re on Windows. You&#8217;ll just need the already available/installed Terminal on a Mac (it&#8217;s in <em>Applications &gt; Utilities</em>).</p>

<h2>Proxy setup</h2>

<p>Open up Putty/Terminal. Enter this into the console:</p>

<p><code>ssh -D 8080 username@proxydomain.com</code></p>

<p>The &#8220;8080&#8243; should be an unused port on your machine. In most cases, port 8080 is fine. The &#8220;username&#8221; should be the user name you need to login to the proxy server (ie proxydomain.com). You should be prompted with the password after entering this command. This will create a tunnel on the port 8080 where all HTTP traffic will go through the proxy server. That is, if an application uses the port 8080 as a proxy. This won&#8217;t have any effect on your current applications (i.e. browsers) unless you modify your settings to use this proxy. Please note that you&#8217;ll have to keep the terminal window open so your proxy session won&#8217;t be destroyed. There are probably other ways to make it work without the window left open but I&#8217;m content with this.</p>

<h2>Modifying Zend Studio settings</h2>

<p>Since we now have a proxy available, we need to instruct Zend Studio to use it.</p>

<ol>
    <li>Open Zend Studio.</li>
    <li>Go to Preferences (located under the <em>Application</em> menu on Mac and under <em>Window</em> on Windows)</li>
    <li>Navigate to <em>General &gt; Network Connections</em></li>
    <li>Set the proxy setting to <em>Manual proxy configuration</em>. And enter <strong>127.0.0.1</strong> in the SOCKS proxy field and <strong>8080</strong> on the Port field beside that.</li>
</ol>

<p>Your setup should look something like this:</p>

<div id="attachment_19" class="wp-caption aligncenter" style="width: 650px"><img class="size-full wp-image-19" title="Zend Studio Network Settings" src="http://shikii.net/blog/wp-content/uploads/2009/08/Preferences-1.jpg" alt="Zend Studio Network Settings" width="610" /><p class="wp-caption-text">Zend Studio Network Settings</p></div>

<p>Save the settings and you should be ready to open up a connection to the target server (in this case, the main development server). Create a remote connection to your target server like you normally would. I couldn&#8217;t discuss that here but <a href="http://files.zend.com/help/Zend-Studio-Eclipse/remote_systems_view.htm">this</a> might help.</p>

<h3>Other References</h3>

<ul>
    <li><a href="http://paulstamatiou.com/how-to-surf-securely-with-ssh-tunnel">How To: Surf Securely with an SSH Tunnel</a></li>
    <li><a href="http://www.linuxjournal.com/content/use-ssh-create-http-proxy">Use SSH to Create an HTTP Proxy</a></li>
    <li><a href="http://blogs.techrepublic.com.com/security/?p=421">Use PuTTY as a secure proxy on Windows</a></li>
    <li><a href="http://files.zend.com/help/Zend-Studio-Eclipse/remote_systems_view.htm">Zend Studio Remote Systems View</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/zend-studio-eclipse-remote-editing-through-a-secure-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
