hey,<br>thanks for reply and sorry for delay ....<br>i think below should clear out ur doubt .... the root is has the access to all files ... <br>if you find any thing please help ....<br>for opennebula to work ssh has to work..<br>
please look carefully and find any problem ....<br><pre>[root@localhost ~]# su oneadmin<br>[oneadmin@localhost root]$ cd ~<br>[oneadmin@localhost ~]$ ssh-keygen<br>Generating public/private rsa key pair.<br>Enter file in which to save the key (/home/oneadmin/.ssh/id_rsa): y<br>
Enter passphrase (empty for no passphrase): <br>Enter same passphrase again: <br>Your identification has been saved in y.<br>Your public key has been saved in y.pub.<br>The key fingerprint is:<br>8e:79:af:cb:b3:e8:ed:a5:1e:49:95:db:d1:66:72:32 <a href="http://webmail.daiict.ac.in/webmail/src/compose.php?send_to=oneadmin%40localhost.localdomain">oneadmin@localhost.localdomain</a><br>
[oneadmin@localhost ~]$ exit<br>exit<br>[root@localhost ~]# cp /home/oneadmin/.ssh/id_rsa<br>id_rsa      id_rsa.pub  <br>[root@localhost ~]# cp /home/oneadmin/.ssh/id_rsa.pub /root/.ssh/id_rsa.pub <br>cp: overwrite `/root/.ssh/id_rsa.pub'? y<br>
[root@localhost ~]# cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys <br>[root@localhost ~]# cd .ssh/<br>[root@localhost .ssh]# rm authorized_keys <br>rm: remove regular file `authorized_keys'? y<br>[root@localhost .ssh]# cp id_rsa.pub authorized_keys<br>
[root@localhost .ssh]# ssh localhost<br>The authenticity of host 'localhost (::1)' can't be established.<br>RSA key fingerprint is 5d:40:28:ff:97:12:98:06:92:58:41:d5:20:3e:09:7c.<br>Are you sure you want to continue connecting (yes/no)? no<br>
Host key verification failed.<br></pre>-digvijay<br><br><div class="gmail_quote">On Wed, Nov 11, 2009 at 11:49 AM, Shi Jin <span dir="ltr"><<a href="mailto:jinzishuai@gmail.com">jinzishuai@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">A quick thought: did you copy the id_rsa.pub into authorized_keys?<br>
Also, check the file permissions.<br>
<br>
Shi<br>
<div><div></div><div class="h5"><br>
On Tue, Nov 10, 2009 at 11:15 PM, digvijay singh shaktawat<br>
<<a href="mailto:digvijaysinghshaktawat@gmail.com">digvijaysinghshaktawat@gmail.com</a>> wrote:<br>
> hi,<br>
> i have been trying to usr RSA keys to login ssh host for hours .....<br>
> i have installed nis server<br>
><br>
> oneadmin> ssh-keygen<br>
> .....<br>
> [oneadmin@localhost .ssh]$ ls<br>
> authorized_keys  id_rsa  id_rsa.pub<br>
><br>
> and copies id_rsa.pub file on the host .ssh folder ....<br>
><br>
> i have tried a lot of combinations for it work but every time i get the same<br>
> answer<br>
> i generated key in oneadmin and then tried to login from root (just to test)<br>
> i have tried from various others linux machines also ... but every time the<br>
> same answer .....<br>
><br>
> [root@azure ~]# ssh 127.0.0.1<br>
> The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.<br>
> RSA key fingerprint is 5d:40:28:ff:97:12:98:06:92:58:41:d5:20:3e:09:7c.<br>
> Are you sure you want to continue connecting (yes/no)? no<br>
> Host key verification failed.<br>
><br>
> if i do [yes] still every time to login it will ask passwd but opennbula<br>
> needs to login with pass from SRA keys ..<br>
><br>
> Please help.... Urgently<br>
><br>
> -Digvijay<br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Shi Jin, Ph.D.<br>
</font></blockquote></div><br>