Re: ssh no password problem



On Sun, 2008-08-31 at 10:52 +0200, Adel ESSAFI wrote:
Hi list
I want to make ssh login with no paasword on my machine (to install a
tool taht need that kind of authentification).
I have generated the public key and added it at the end the
file .ssh/authorizek_keys as show bellow. however, when I do ssh
localhost, the password of the public key is promped. Can you help
please.
Regards
Adel
<snip>
oar@lion:~/.ssh$ chmod 640 authorized_keys2

Hmmm, the Server Guide recommends 644 permissions:
https://help.ubuntu.com/8.04/serverguide/C/openssh-server.html

Though I don't know why this would make a difference in this case, I
assume the program for which you need the key auth is run with the
credentials of oar@lion anyway.

Did you set "PubkeyAuthentication yes" in /etc/ssh/sshd_config?

Did you restart sshd after making changes in /etc/ssh/sshd_config? To
restart, issue "sudo /etc/init.d/ssh restart" on the command line.


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: [FC5] how to use public key login for ssh?
    ... sorry that I am a newbie to fedora FC5, I used to be in Solaris environment. ... ssh login still prompts me for password..... ... It is not clear to me that you understand that the public key from the ...
    (Fedora)
  • Re: [FC5] how to use public key login for ssh?
    ... sorry that I am a newbie to fedora FC5, I used to be in Solaris environment. ... ssh login still prompts me for password..... ... It is not clear to me that you understand that the public key from the ...
    (Fedora)