<?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>G-ROC web applications &#187; Servers</title>
	<atom:link href="http://www.g-roc.com/category/servers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.g-roc.com</link>
	<description>PHP freelancer, web developer, mobile web enthusiast</description>
	<lastBuildDate>Tue, 26 Jan 2010 23:23:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>SSH vs. Putty private key files (.ppk) on MAC OS X</title>
		<link>http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html</link>
		<comments>http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html#comments</comments>
		<pubDate>Fri, 22 Feb 2008 17:05:45 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[.ppk]]></category>
		<category><![CDATA[.ssh]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[passphrase]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[publickey]]></category>
		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html</guid>
		<description><![CDATA[I had some problems lately trying to connect to a customer&#8217;s server via SSH on my mac running Mac OS X 10.4.11. I was trying to use the provided .ppk file in mac&#8217;s OpenSSH command line tool, which didn&#8217;t work and just told me: &#8220;Permission denied (publickey).&#8221; after promting me to &#8220;Enter passphrase for key [...]]]></description>
			<content:encoded><![CDATA[<p>I had some problems lately trying to connect to a customer&#8217;s server via SSH on my mac running Mac OS X 10.4.11. I was trying to use the provided .ppk file in mac&#8217;s OpenSSH command line tool, which didn&#8217;t work and just told me: &#8220;Permission denied (publickey).&#8221; after promting me to &#8220;Enter passphrase for key &#8216;[keyfile.ppk]&#8216;&#8221;&#8230; so I looked around a bit and after a while came across a great little article on the topic <a href="http://leadingedgescripts.co.uk/converttosshkey.php">right here</a>.</p>
<p>So in order to use the private key file for putty.exe (the .ppk file) you need to convert it to a OpenSSH file first. The tool you need is called <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTYgen</a> and only runs in Windows. I have not come across a mac app to do that (too bad). Anyways, the only thing you have to do after launching puttygen.exe is to open the .ppk file, enter your passphrase and go to &#8220;Conversions&#8221; in the menu. Then save the file as an OpenSSH file.</p>
<p>Finally, after you put the .ssh file on your mac, you need to restrict the .ssh file&#8217;s permissions (&#8220;Get Info&#8221;, then under &#8220;Ownership &amp; Permissions&#8221;-&gt;&#8221;Details&#8221; set &#8220;No Access&#8221; for both &#8220;Group&#8221; and &#8220;Others&#8221;). Otherwise OpenSSH won&#8217;t let you use the file. Now you can connect to the server using this command line:</p>
<p><code>comp:~ your$: ssh -2 -i /path/sshfilename.ssh user@server.domain</code></p>
<p>Option &#8220;-2&#8243; is not required, at least for me and in this case. It forces ssh to protocol version 2, but it works without. This depends on the protocol the server requires and you need to try this. Also check out the ssh manual (type &#8220;man ssh&#8221;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

