[one-users] NIS ssh please help

digvijay singh shaktawat digvijaysinghshaktawat at gmail.com
Wed Nov 11 10:37:48 PST 2009


[root at azure .ssh]# ls -l
total 12
-rw-r--r-- 1 root root 412 Feb 18 15:50 authorized_keys
-rw-r--r-- 1 root root 412 Feb 18 15:49 id_rsa.pub
-rw-r--r-- 1 root root 391 Feb 18 04:46 known_hosts


On Wed, Nov 11, 2009 at 11:26 PM, Shi Jin <jinzishuai at gmail.com> wrote:

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


More information about the Users mailing list