i have tried [yes] but no good. It adds the user to known-users list but so the error <br><br>The authenticity of host 'localhost (::1)' can't be established.<div class="im">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)? </div><br>does not show but, still it asks the password every time you try to log in. So the problem is still not solved because opennebula needs to login automatically<br>
<br>any suggesstions ????<br><br>-digvijay<br><br><br><br><div class="gmail_quote">On Wed, Nov 11, 2009 at 11:26 PM, 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;">try to answer yes.<br>
Also can you do ls -l ?<br>
<br>
Shi<br>
<br>
On Wed, Nov 11, 2009 at 10:11 AM, digvijay singh shaktawat<br>
<div><div></div><div class="h5"><<a href="mailto:digvijaysinghshaktawat@gmail.com">digvijaysinghshaktawat@gmail.com</a>> wrote:<br>
> 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<br>
> 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>
><br>
> [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>
><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<br>
> oneadmin@localhost.localdomain<br>
><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>
><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>
><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>
><br>
> Host key verification failed.<br>
><br>
> -digvijay<br>
><br>
> On Wed, Nov 11, 2009 at 11:49 AM, Shi Jin <<a href="mailto:jinzishuai@gmail.com">jinzishuai@gmail.com</a>> wrote:<br>
>><br>
>> A quick thought: did you copy the id_rsa.pub into authorized_keys?<br>
>> Also, check the file permissions.<br>
>><br>
>> Shi<br>
>><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<br>
>> > same<br>
>> > answer<br>
>> > i generated key in oneadmin and then tried to login from root (just to<br>
>> > test)<br>
>> > i have tried from various others linux machines also ... but every time<br>
>> > 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>
>> > _______________________________________________<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>
>><br>
>><br>
>><br>
>> --<br>
>> Shi Jin, Ph.D.<br>
><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Shi Jin, Ph.D.<br>
</font></blockquote></div><br>