Re: [Hampshire] Linux problems

Top Page

Reply to this message
Author: Jonathan Hudson
Date:  
To: hampshire
Subject: Re: [Hampshire] Linux problems
On Mon, 12 Feb 2007 21:56:06 +0000
Sean Gibbins <sean@???> wrote:

> drystan mazur wrote:
> > 2: when using SSH if my public key is in the authusied keys folder I
> > should not need a password to log into the server ? Is this correct
> > because I copied the file in but I still need a password
>
> You probably need to set this within /etc/ssh/sshd_config:
>
> PasswordAuthentication no
>
> Sean


And note that

(a) authorized_keys (sic) is a file, not a folder

(b) If the permissions are too open (e.g. anyone else can access it),
then it will ask you for a password.

$ cat key.pub >> ~/.ssh/authorized_keys
$ chmod -R g-rw,o-rw ~/.ssh

-jonathan