key-based authentication over SSH

2006-06-27 Thread yahav Biran
Hi all, I'm trying to configure two machines with key based authentication. In the client machine: First I created my private and public key: ssh-keygen -b 1024 -f identity -P '' -t dsa In result, the public key file, identity.bup and the private key file, identity were created. Transfer the

Re: key-based authentication over SSH

2006-06-27 Thread Shachar Shemesh
yahav Biran wrote: Create the directory ~user/.ssh Add the public key into the authorized_keys file under the .ssh directory. it still ask for password. Why You forgot (on the server): chown -R user ~user/.ssh chmod go-rwx ~user/.ssh{,/authorized_keys} Thanks yahav Shachar --

Re: key-based authentication over SSH

2006-06-27 Thread Ilya Konstantinov
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

Re: key-based authentication over SSH

2006-06-27 Thread Ira Abramov
Quoting yahav Biran, from the post of Tue, 27 Jun: Hi all, I'm trying to configure two machines with key based authentication. In the client machine: First I created my private and public key: ssh-keygen -b 1024 -f identity -P '' -t dsa RTFM. since ssh2, you can't have keys without

RE: key-based authentication over SSH

2006-06-27 Thread yahav Biran
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

Re: key-based authentication over SSH

2006-06-27 Thread Tzafrir Cohen
On Tue, Jun 27, 2006 at 03:59:37PM +0300, Ira Abramov wrote: Quoting yahav Biran, from the post of Tue, 27 Jun: Hi all, I'm trying to configure two machines with key based authentication. In the client machine: First I created my private and public key: ssh-keygen -b 1024 -f identity

Re: key-based authentication over SSH

2006-06-27 Thread Maxim Vexler
On 6/27/06, Ira Abramov [EMAIL PROTECTED] wrote: Quoting yahav Biran, from the post of Tue, 27 Jun: Hi all, I'm trying to configure two machines with key based authentication. In the client machine: First I created my private and public key: ssh-keygen -b 1024 -f identity -P '' -t dsa

Re: key-based authentication over SSH

2006-06-27 Thread Amos Shapira
On 27/06/06, Ira Abramov [EMAIL PROTECTED] wrote: RTFM. since ssh2, you can't have keys without passphrases. either add a Ira, I think you have a mistake here: 1. From ssh-keygen(1): The passphrase may be empty to indicate no passphrase (host keys must have an empty passphrase), or it may be