<?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>/home/shakir &#187; security</title>
	<atom:link href="http://www.mohdshakir.net/tag/security/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mohdshakir.net</link>
	<description>My Piece Of The Web</description>
	<lastBuildDate>Fri, 16 Jul 2010 15:45:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Configure passwordless login in ssh</title>
		<link>http://www.mohdshakir.net/2008/01/01/configure-passwordless-login-in-ssh</link>
		<comments>http://www.mohdshakir.net/2008/01/01/configure-passwordless-login-in-ssh#comments</comments>
		<pubDate>Tue, 01 Jan 2008 12:48:38 +0000</pubDate>
		<dc:creator>shakir</dc:creator>
				<category><![CDATA[Information Insemination]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.mohdshakir.net/2008/01/01/configure-passwordless-login-in-ssh</guid>
		<description><![CDATA[This post is just a quick recap on how to configure passwordless ssh login. In my setting, herugrim is my local machine, and anduril is the remote machine with the ip address of 192.168.1.10 The first step is to (optionally) generate RSA key for use with SSH. Make sure you dont use any passphrase for [...]]]></description>
			<content:encoded><![CDATA[<p>This post is just a quick recap on how to configure passwordless ssh login.</p>
<p>In my setting, <em>herugrim</em> is my local machine, and <em>anduril</em> is the remote machine with the ip address of 192.168.1.10</p>
<p><!-- adman --></p>
<p>The first step is to (optionally) generate RSA key for use with SSH. Make sure you dont use any passphrase for this or you&#8217;ll later need to enter the passphrase upon login instead of password, which doesn&#8217;t really server our purpose here.</p>
<pre>shakir@herugrim ~ $ ssh-keygen -t rsa -C shakir@192.168.1.10
Generating public/private rsa key pair.
Enter file in which to save the key (/home/shakir/.ssh/id_rsa): /home/shakir/.ssh/id_rsa.192.168.1.10
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/shakir/.ssh/id_rsa.192.168.1.10.
Your public key has been saved in /home/shakir/.ssh/id_rsa.192.168.1.10.pub.
The key fingerprint is: 11:d9:23:2e:68:05:59:d9:ac:5a:00:69:17:3a:b4:24  </pre>
<p>Now we can copy the public key to the server. Instead of doing it manually, OpenSSH has a nice program to do just what we need:</p>
<pre>shakir@herugrim ~ $ ssh-copy-id -i .ssh/id_rsa.192.168.1.10.pub shakir@192.168.1.10</pre>
<p>So now lets test if our passwordless login is successful:</p>
<pre>shakir@herugrim ~ $ ssh shakir@192.168.1.10 -i .ssh/id_rsa.192.168.1.10
shakir@anduril:~$</pre>
<p>Great, it works <img src='http://www.mohdshakir.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The next thing to do is to just make sure you keep your private key safe..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohdshakir.net/2008/01/01/configure-passwordless-login-in-ssh/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
