LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 33
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 ?
 
Old 04-09-2012, 08:42 AM   #2
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

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.
 
  


Reply


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


All times are GMT -5. The time now is 01:55 PM.

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