LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Public/private key asks password when made without (https://www.linuxquestions.org/questions/linux-newbie-8/public-private-key-asks-password-when-made-without-938874/)

jonaskellens 04-09-2012 07:36 AM

Public/private key asks password when made without
 
Hello,

I made public/private keypair as follow :
Code:

[root@s2 ~]# ssh-keygen -t rsa -b 2048 -f /home/syncR2/rkey

Generating public/private rsa key pair.

Enter passphrase (empty for no passphrase):
[enter]
Enter same passphrase again:
[enter]
Your identification has been saved in /home/syncR2/rkey.

Your public key has been saved in /home/syncR2/rkey.pub.

The key fingerprint is:

<snip>

When I want to ssh, it asks :
Quote:

Enter passphrase for key '/home/syncR2/rkey':
I don't want it to ask that. What did I do wrong ? How can I fix it ?

jonaskellens 04-09-2012 07:42 AM

Sorry, seemed to be a problem of rights.

The private key /home/syncR2/rkey had root:root permissions.

Changed it to syncR2:syncR2 and now it works.


All times are GMT -5. The time now is 10:37 AM.