<?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>linuxbuddies.com &#187; Authentication</title>
	<atom:link href="http://linuxbuddies.com/tag/authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +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>SSH login using Public/Private key authentication</title>
		<link>http://linuxbuddies.com/2009/01/20/ssh-login-using-publicprivate-key-authentication/</link>
		<comments>http://linuxbuddies.com/2009/01/20/ssh-login-using-publicprivate-key-authentication/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 18:50:47 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[Public key]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=294</guid>
		<description><![CDATA[ Scenario
To log into &#8220;Server A&#8221; from &#8220;Server B&#8221; without using passwords. Users for both the server will be &#8220;root&#8221;
Process

 Login to &#8220;Server B&#8221; as root user and generate key for the root user. No need to enter any passphrase while generating this key.


ssh-keygen -t rsa
 
Once the key is generated, copy the ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-295" title="key1" src="http://linuxbuddies.com/wp-content/uploads/2009/01/key1-150x150.png" alt="key1" width="150" height="150" /><strong> Scenario</strong></p>
<p><strong><span style="font-weight: normal;">To log into &#8220;Server A&#8221; from &#8220;Server B&#8221; without using passwords. Users for both the server will be &#8220;root&#8221;</span></strong></p>
<p><strong><span style="font-weight: normal;"><span><strong>Process</strong></span><br />
</span></strong></p>
<p><strong><span style="font-weight: normal;"> Login to &#8220;Server B&#8221; as root user and generate key for the root user. No need to enter any passphrase while generating this key.</span></strong></p>
<p><strong><span style="font-weight: normal;"><br />
</span></strong></p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;">ssh-keygen -t rsa</span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;">Once the key is generated, copy the contents of &#8220;Server B&#8221; /root/.ssh/id_rsa.pub to &#8220;Server A&#8221; /root/.ssh/authorized_keys file. Make sure that the permission of authorized_keys is 0600 and .ssh folder is 0700 .</p>
<p>Also make sure that you have the following lines in your /etc/ssh/sshd_config file: <br />
RSAAuthentication yes<br />
PubkeyAuthentication yes<br />
</span></strong></p>
<p><strong><span style="font-weight: normal;">Finally restart your ssh service and try logging to your &#8220;Server B&#8221; from &#8220;Server A&#8221;:</span></strong></p>
<p><strong><span style="font-weight: normal;"><br />
</span></strong></p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;">/etc/init.d/sshd restart</span></strong></p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;">ssh [Server_A_ip]<br />
</span></strong></p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><br />
</span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/20/ssh-login-using-publicprivate-key-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
