Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.security.ssh > #85

Re: No password steps do not work

Date 2011-05-12 09:54 +0200
From Wolfgang Meiners <WolfgangMeiners01@web.de>
Newsgroups comp.security.ssh
Subject Re: No password steps do not work
References <9786f3d7-2895-4a7a-a1fb-988df31893e0@k27g2000pri.googlegroups.com>
Message-ID <4dcb923f$0$6760$9b4e6d93@newsspool3.arcor-online.net> (permalink)
Organization Arcor

Show all headers | View raw


Am 11.05.11 22:37, schrieb Nagrik:
> Hello Group,
> 
> I want to logon to a remote server by not using password and I
> followed all steps
> 
> 1.  From ssh-keygen on local machine
ok. The first step is to call on the local machine:
$ ssh-keygen
and you should get an private key and an public key in ~/.ssh
I think, you have done this.

> 2.  ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
I don't know, what ssh-copy-id is, but I think, the second step is to
create an directory ~/.ssh with permissions u=rwx,og-rwx on the remote
host if this directory does not exist. Have a look at the permissions!
The third step would be to create an file ~/.ssh/authorized_keys on the
remote-host if this file does not exist. The permissions should be
u=wr,og-rwx.

The forth step would be to append your local public key to your
remote-hosts ~/.ssh/authorized_keys. For this, you can use a comand like
$ cat ~/.ssh/id_rsa.pub |
ssh user@remote-host "cat - >> ~/.ssh/authorized_keys"

write this command in one line and adjust the names. If everything works
and if your remote-hosts sshd is configured in the default way, then you
should not be asked for a password but for a passphrase on your next
login attempt.

If your private key is not in the default place, you might need to type
$ ssh -i identity_file user@remote-host

have a look at man ssh for this.

If this works too, you should read how ssh-agent works on your local
system to have a simplified login to your remote-host.

> 
> However, evern after all these steps, when I logged on to the remote
> machine it asked me the password.
> 
> Can someone please tell me as to what I may have done wrong or missed
> any step.
> 
> Thanks in advance.
> 
> nagrik

Hope I did not forget any important things and it works for you
Wolfgang

Back to comp.security.ssh | Previous | NextPrevious in thread | Find similar


Thread

No password steps do not work Nagrik <vnagrik@gmail.com> - 2011-05-11 13:37 -0700
  Re: No password steps do not work Wolfgang Meiners <WolfgangMeiners01@web.de> - 2011-05-12 09:54 +0200

csiph-web