<?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>Linux, Programming, Telephony, Asterisk, Apache, Tips &#38; Tricks &#187; digital certificate</title>
	<atom:link href="http://shahidz.com/tag/digital-certificate/feed/" rel="self" type="application/rss+xml" />
	<link>http://shahidz.com</link>
	<description>Passionate About Technology</description>
	<lastBuildDate>Sun, 10 Jan 2010 17:38:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ssh-keygen :: SSH Login without Password</title>
		<link>http://shahidz.com/ssh-keygen-ssh-login-with-out-password/</link>
		<comments>http://shahidz.com/ssh-keygen-ssh-login-with-out-password/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 08:12:55 +0000</pubDate>
		<dc:creator>Shahid</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Micellanious]]></category>
		<category><![CDATA[digital certificate]]></category>
		<category><![CDATA[ssh-key]]></category>
		<category><![CDATA[ssh-keygen]]></category>

		<guid isPermaLink="false">http://shahidz.com/?p=12</guid>
		<description><![CDATA[Introduction
 SSH is often used to login from one system to another with Username  Password.  There are some cases where we want to login to other systems without spesifing username and password. By generating ssh keys we can login to the system without specifying username and password.
ssh-keygen &#8211; authentication key generation
Syntax 
ssh-keygen  [...]]]></description>
			<content:encoded><![CDATA[<h3>Introduction</h3>
<p align="justify"> SSH is often used to login from one system to another with Username  Password.  There are some cases where we want to login to other systems without spesifing username and password. By generating ssh keys we can login to the system without specifying username and password.</p>
<h3><strong>ssh-keygen &#8211; authentication key generation</strong></h3>
<p><strong>Syntax </strong></p>
<p><strong>ssh-keygen</strong>  [<strong>-b</strong> <tt>bits</tt>]    [<strong>-f</strong> <tt>file</tt>] [<strong>-N</strong> <tt>new_passphrase</tt>] [<strong>-C</strong> <tt>comment</tt>] <strong>ssh-keygen</strong> <strong>-p</strong> [<strong>-P</strong> <tt>old_passphrase</tt>] [<strong>-N</strong> <tt>new_passphrase</tt>]</p>
<p><strong>ssh-keygen</strong> <strong>-c</strong> [<strong>-P</strong> <tt>passphrase</tt>] [<strong>-C</strong> <tt>comment</tt>]</p>
<p><strong>ssh-keygen</strong> <strong>-u</strong> [<strong>-f</strong> <tt>file</tt>] [<strong>-P</strong> <tt>passphrase</tt>]</p>
<p><strong>Description </strong></p>
<p><strong>Ssh-keygen</strong> generates and manages authentication keys for <a href="http://linuxmafia.com/pub/os2/stahl-ssh/snafu-mirror/ssh.html">ssh</a>. Normally each user wishing to use  <strong>ssh</strong> with RSA authentication runs this once to create the authentication key in <tt>%HOME%/.ssh/identity</tt>. Additionally, the system administrator may use this to generate host keys. Normally this program generates the key and asks for a file in which to store the private key. The public key is stored in a file with the same name but &#8220;.pub&#8221; appended. The program also asks for a passphrase. The passphrase may be empty to indicate no passphrase (host keys must have empty passphrase), or it may be a string of arbitrary length. Good passphrases are 10-30 characters long and are not simple sentences or otherwise easily guessable (English prose has only 1-2 bits of entropy per word, and provides very bad passphrases). The passphrase can be changed later by using the <strong>-p</strong> option.</p>
<p>There is no way to recover a lost passphrase. If the passphrase is lost or forgotten, you will have to generate a new key and copy the corresponding public key to other machines.</p>
<p>USING GOOD, UNGUESSABLE PASSPHRASES IS STRONGLY RECOMMENDED.  EMPTY PASSPHRASES SHOULD NOT BE USED UNLESS YOU UNDERSTAND WHAT YOU ARE DOING.</p>
<p>There is also a comment field in the key file that is only for convenience to the user to help identify the key. The comment can tell what the key is for, or whatever is useful.  The comment is initialized to <tt>user@host</tt> when the key is created, but can be changed using the <strong>-c</strong> option.</p>
<p>The cipher to be used when encrypting keys with passphrase is defined in ssh.h. Using the <strong>-u</strong> option, keys encrypted in any supported cipher can be updated to use this default cipher.</p>
<p><strong>Example for generating ssh-key </strong></p>
<p>Two system with IP addresses 192.168.0.125 and 192.168.0.110</p>
<p>Login to 192.168.0.110 from 192.168.0.125</p>
<pre>$ ssh user@192.168.0.110</pre>
<p>Enter your password</p>
<p>exit</p>
<p>The above login is for checking the connection between two system.</p>
<pre>$ cd ~/.ssh
$ ssh-keygen -t dsa -f id_dsa</pre>
<p>The passphrase should be empty. Press enter twice.</p>
<pre>$ scp id_dsa.pub user@192.168.0.110:~/.ssh/temp.pub</pre>
<p>Now login to system 192.168.0.110</p>
<pre>$ ssh user@192.168.0.110</pre>
<p>Enter Password</p>
<pre>$ cd ~/.ssh
$ cat temp.pub &gt;&gt; authorized_keys2
$ exit</pre>
<p>After all these steps try to login you can login with out specifying the password.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fshahidz.com%2Fssh-keygen-ssh-login-with-out-password%2F&amp;linkname=ssh-keygen%20%3A%3A%20SSH%20Login%20without%20Password"><img src="http://shahidz.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://shahidz.com/ssh-keygen-ssh-login-with-out-password/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
