<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-7336462756272110356.post-4454908237435630589</id><published>2009-04-20T13:21:00.000-07:00</published><updated>2009-04-20T13:23:10.841-07:00</updated><title type='text'>SSH no password rsa-key RHEL 5</title><content type='html'>&lt;table id="LogContentTLRN" align="left" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr id="LogActivityRLRN_9__219" valign="top"&gt;&lt;/tr&gt;&lt;tr id="LogActivityRLRN_9__219" valign="top"&gt;&lt;span id="UpdateSR"&gt;&lt;span id="SRDetailsSubTabRN"&gt;&lt;span id="SRHistoryTabxRN"&gt;&lt;span id="SRLogxRN"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;td id="ActivitySpcCFRN_9__219" width="10"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td id="ActivityTextCFRN_9__219" align="left"&gt;&lt;h3 class="post-title"&gt;SSH no password rsa-key RHEL&lt;/h3&gt;&lt;br /&gt;&lt;span id="ActivityTextFLRN_9__219"&gt;&lt;span id="NoteDetailText_4__219" class="x4"&gt;&lt;br /&gt;1) On the machine you are trying to access  open a terminal and &lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;(Skip these step if you never generated a key before and or you want a fresh start)&lt;/span&gt;&lt;br /&gt;&lt;span id="ActivityTextFLRN_9__219"&gt;&lt;span id="NoteDetailText_4__219" class="x4"&gt;&lt;br /&gt;        a) As root backup .ssh directory for the user by moving it to ssh.backup&lt;br /&gt;&lt;br /&gt;           # mv /home/user/.ssh/       ssh.backup&lt;br /&gt;&lt;br /&gt;2) On the machine that we will generate the RSA-Key  open a terminal and &lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;(Skip these step if you never generated a key before and or you want a fresh start)&lt;/span&gt;&lt;br /&gt;&lt;span id="ActivityTextFLRN_9__219"&gt;&lt;span id="NoteDetailText_4__219" class="x4"&gt;         &lt;br /&gt;         a) As root backup .ssh directory for the user by moving it to ssh.backup&lt;br /&gt;         &lt;br /&gt;           # mv /home/user/.ssh/       ssh.backup&lt;br /&gt;&lt;br /&gt;3)On the machine that we will generate the RSA-Key open a terminal and&lt;br /&gt;        &lt;br /&gt;          a) Create the RSA  key  as the user you want to access the remote machine&lt;br /&gt;           &lt;br /&gt;                   # ssh-keygen&lt;br /&gt;&lt;br /&gt;           b) Press enter to accept defaults&lt;br /&gt;                              &lt;br /&gt;              Generating public/private rsa key pair.&lt;br /&gt;              Enter file in which to save the key (/home/manuken/.ssh/id_rsa):&lt;br /&gt;              Created directory '/home/manuken/.ssh'.&lt;br /&gt;&lt;br /&gt;          c)Press enter leave the passphrase blank&lt;br /&gt;&lt;br /&gt;             Enter passphrase (empty for no passphrase):&lt;br /&gt;             Enter same passphrase again:&lt;br /&gt;             Your identification has been saved in /home/manuken/.ssh/id_rsa.&lt;br /&gt;             Your public key has been saved in /home/manuken/.ssh/id_rsa.pub.&lt;br /&gt;             The key fingerprint is:&lt;br /&gt;             8a:8f:d3:9e:db:d5:93:b7:c4:fd:d8:0a:21:e1:47:91 manuken@manuken-laptop.lan&lt;br /&gt;&lt;br /&gt;4) Now  copy the key to the remote machine .&lt;br /&gt;    &lt;br /&gt;        &lt;br /&gt;              # ssh-copy-id -i $HOME/.ssh/id_rsa.pub user@remotehost&lt;br /&gt;&lt;br /&gt;5) ssh in to the machine you should be able to access without a password.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7336462756272110356-4454908237435630589?l=www.adminlinux.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.adminlinux.org/feeds/4454908237435630589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7336462756272110356&amp;postID=4454908237435630589&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7336462756272110356/posts/default/4454908237435630589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7336462756272110356/posts/default/4454908237435630589'/><link rel='alternate' type='text/html' href='http://www.adminlinux.org/2009/04/ssh-no-password-rsa-key-rhel-5.html' title='SSH no password rsa-key RHEL 5'/><author><name>bighandsbird</name><uri>http://www.blogger.com/profile/10204317846080625082</uri><email>Bighandsbird@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11473183371157529073'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry>