<?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>EloquentSpace &#124; Dan Kelly&#039;s Weblog &#187; chmod</title>
	<atom:link href="http://www.eloquentspace.net/blog/tag/chmod/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eloquentspace.net/blog</link>
	<description>I Hack and Tweak Everything</description>
	<lastBuildDate>Thu, 31 Dec 2009 03:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSh Connections With no Password</title>
		<link>http://www.eloquentspace.net/blog/ssh-connections-with-no-password/</link>
		<comments>http://www.eloquentspace.net/blog/ssh-connections-with-no-password/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 10:31:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[From the old Blog]]></category>
		<category><![CDATA[HowTo's]]></category>
		<category><![CDATA[authorized_keys]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[id_dsa]]></category>
		<category><![CDATA[id_dsa.pub]]></category>
		<category><![CDATA[id_rsa]]></category>
		<category><![CDATA[id_rsa.pub]]></category>
		<category><![CDATA[no password]]></category>
		<category><![CDATA[SSh]]></category>
		<category><![CDATA[ssh key]]></category>

		<guid isPermaLink="false">http://www.eloquentspace.net/blog/?p=71</guid>
		<description><![CDATA[Not only is connecting to an SSh server with an encrypted key much more secure than using a password, i'ts a lot easier.  I use my SSh servr a lot, and I'd probably kill myself if I had to enter a password every time.  This article shows you how to set up a key, so you don't need to enter your password every time.]]></description>
			<content:encoded><![CDATA[<p><strong>Make the keys</strong></p>
<p>Open up a terminal on your client machine and type &#8220;ssh-keygen -t rsa&#8221; for an RSA encrypted key.  Either RSA or DSA should usually work.  Don&#8217;t enter a passphrase and just hit enter until you get back to the shell.  SSh-Keygen should tell you where the keys are.  If you can&#8217;t find them, just add &#8220;-f ~/.ssh&#8221; at the end of the command and it will put them in the ~/.ssh directory.</p>
<p><strong>Send the public key to the server</strong></p>
<p>Switch to the directory where the keys are in: “cd ~/.ssh”  and set the permissions for the private key to 600 while you’re at it: “chmod 600 id_rsa” or whatever your ID file is named, just leave the .pub alone for now.</p>
<p>“scp id_rsa.pub user@ssh-server.com:~/.ssh”  You will have to enter your password, and the file will send.<br />
<strong><br />
Login to the server and add the key to authorized_keys</strong></p>
<p>“ssh user@ssh-server.com”<br />
Then change directories to ~/.ssh<br />
“cd ~/.ssh”<br />
Add the key:<br />
“cat id_rsa.pub &gt;&gt; authorized keys”<br />
Change permissions:<br />
“chmod 640 authorized_keys”<br />
Remove the key file:<br />
“rm id_rsa.pub”</p>
<p>You may want to view your sshd_config to double check the name of the authorized_keys file if it doesn’t work, or ensure which encryption algorithms are enabled by viewing sshd_config.  You might do it like this “sudo vi /etc/ssh/sshd_config”</p>
<p><strong>Test it out</strong></p>
<p>At this point you can log out of the server by typing exit.</p>
<p>You should now be able to log into the server without a password by using the private key.  You can specify the key by passing the –i parameter to ssh.  It might look something like this:</p>
<p>“ssh –i /home/dan/id_rsa dan@ssh-server.com”</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.eloquentspace.net%2Fblog%2Fssh-connections-with-no-password%2F&amp;linkname=SSh%20Connections%20With%20no%20Password"><img src="http://www.eloquentspace.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.eloquentspace.net/blog/ssh-connections-with-no-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
