Many thanks it is working now.

-----Original Message-----
From: Ilya Konstantinov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 3:59 PM
To: yahav Biran
Cc: 'IL Linux'
Subject: Re: key-based authentication over SSH

yahav Biran wrote:

> Add the public key into the authorized_keys file under the .ssh directory.
>
> Back to the client:
> Login to the server using the private key:
> ssh {server ip} -i identity
>
> it still ask for password.
> Why
>   
Plenty of possible reasons, but the most common one is incorrect 
permissions on the ~/.ssh directory or the ~/.ssh/authorized_keys file. 
If you have root access to the server, you will see the reason in the 
logs. Otherwise, just do:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to