<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>egloo &#187; RSA</title>
	<atom:link href="http://egloo.wordpress.com/tag/rsa/feed/" rel="self" type="application/rss+xml" />
	<link>http://egloo.wordpress.com</link>
	<description>Linux Sysadmin Blog</description>
	<lastBuildDate>Sat, 18 Apr 2009 19:35:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='egloo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4f738d3a8dae6c0af9ecb7fb5c48f4a5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>egloo &#187; RSA</title>
		<link>http://egloo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://egloo.wordpress.com/osd.xml" title="egloo" />
		<item>
		<title>Connect Through SSH Without a Password</title>
		<link>http://egloo.wordpress.com/2008/12/10/connect-through-ssh-without-a-password/</link>
		<comments>http://egloo.wordpress.com/2008/12/10/connect-through-ssh-without-a-password/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 15:29:36 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[RSA]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=227</guid>
		<description><![CDATA[One day, you will find yourself trying to execute  a command on a remote UNIX box without the need of typing the password. The basis of using this technique relies on public keys which are a kind of digital signatures.
Let&#8217;s supose we have a server named &#8220;Mailserver&#8221; and another server called &#8220;Monitor&#8221; and you want Monitor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&blog=4102430&post=227&subd=egloo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft size-thumbnail wp-image-228" title="lockpick" src="http://egloo.files.wordpress.com/2008/12/lock-picking-5.jpg?w=105&#038;h=95" alt="lockpick" width="105" height="95" />One day, you will find yourself trying to execute  a command on a remote UNIX box without the need of typing the password. The basis of using this technique relies on public keys which are a kind of digital signatures.</p>
<p>Let&#8217;s supose we have a server named &#8220;<strong>Mailserver</strong>&#8221; and another server called &#8220;<strong>Monitor</strong>&#8221; and you want Monitor to connect every 30 minutes to Mailserver and verify the health of some services.</p>
<p>Anyway, here is the quick-guide:</p>
<p>First of all connect to <strong>Monitor </strong>with the user of you choice.</p>
<p>Then,  type:</p>
<p><code>ssh-keygen -t rsa</code><br />
 This command will create the RSA public key of the current user. You will be asked to type a passphrase but it&#8217;s not necesary at all; You can just ignore it.</p>
<p>When the command finishes execution, a message will appear telling you the location of the new files. In most cases it is placed in the <em>.ssh/</em> directory inside your <em>home/ </em>path.</p>
<p>Next, you&#8217;ll have to copy the public they to the <em>authorized_keys2 </em>file on the remote server (in this case <strong>Mailserver</strong>). To make it simple, here is the command (Remember to substitute user and hostname with your own):</p>
<p><code>scp ~/.ssh/id_rsa.pub user@hostname:~/.ssh/authorized_keys2</code><br />
This will the last time you&#8217;ll prompted to type the password. When the transfer finishes, you should be able to ssh from <em>Monitor </em>to <em>Mailserver </em>without being prompted for a pass. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>NOTE</strong>: On some UNIX like Solaris the default location of the public-keys can vary from system to system.</p>
<p><strong>NOTE 2</strong>: You must have <em><strong>RSAAuthentication yes</strong></em> in your <em>/etc/ssh/sshd_config </em>file. On many Linux installations this setting is commented out in a default install.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&blog=4102430&post=227&subd=egloo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/12/10/connect-through-ssh-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/12/lock-picking-5.jpg?w=105" medium="image">
			<media:title type="html">lockpick</media:title>
		</media:content>
	</item>
	</channel>
</rss>