Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-09-2012, 08:36 AM   #1
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 646

Rep: Reputation: 33
Public/private key asks password when made without


I made public/private keypair as follow :
[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 same passphrase again: 
Your identification has been saved in /home/syncR2/rkey.

Your public key has been saved in /home/syncR2/

The key fingerprint is:

When I want to ssh, it asks :
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 ?
Old 04-09-2012, 08:42 AM   #2
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 646

Original Poster
Rep: Reputation: 33
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can we regenerate public key from private key hahacc Linux - Security 1 02-07-2012 10:24 PM
SFTP without password and without public/ private key iamakshay Programming 2 10-19-2009 05:35 PM
Public key, private key explained calande Linux - Security 3 06-12-2008 06:23 AM
Private/Public key vs. Password authentication w/ SSH MykeV Linux - Security 5 11-25-2007 12:49 PM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 08:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration