LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 10-20-2006, 05:21 PM   #1
thomsky
LQ Newbie
 
Registered: Oct 2006
Location: staffordshire
Distribution: mandriva 2006
Posts: 2

Rep: Reputation: 0
Question SSH: Help needed adding private key


Hi all

I am trying to add a private key using ssh-add. this is the error I get:

root@localhost nigel]# ssh-add .ssh/identity/ssh_private_key.ppk
Enter passphrase for .ssh/identity/ssh_private_key.ppk:
Bad passphrase, try again for .ssh/identity/ssh_private_key.ppk:
Bad passphrase, try again for .ssh/identity/ssh_private_key.ppk:
[root@localhost nigel]#

as you can see the .ppk file has a passphrase which is rejected.

I have copied the private key.ppk file over my network from windows.
the key file and the passphrase works fine using pagent and putty in windows.

can anyone please tell me what is going wrong.

Thanks

Last edited by thomsky; 10-20-2006 at 05:29 PM.
 
Old 10-20-2006, 05:59 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 60
What happens if you try as a user other than root? I'm not sure but I believe that root by default is not allowed to ssh. One way to check is to look at the /etc/ssh/sshd_config and look for the line with "PermitRootLogin" in it. These paths are relative to a FC3 install. It may be in a different location on your server.
 
Old 10-21-2006, 02:31 AM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,021

Rep: Reputation: 125Reputation: 125
The .ppk format sounds like it was generated by puttygen. Have you tried exporting the key in openssh format from puttygen? This wasn't necessary with ssh-1, but is with ssh-2 according to putty's help docs.
 
Old 10-21-2006, 05:04 PM   #4
thomsky
LQ Newbie
 
Registered: Oct 2006
Location: staffordshire
Distribution: mandriva 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks so much to both of you. Both of you pointed me in the right direction.

firstly I exported the .ppk file from windows as on openssh file, and implemented ssh-add as a normal user ( me ).

There was also a permissions issue ssh complained the key was to open so after changing the file permissions to lock it down every thing worked

thanks again guys



Last edited by thomsky; 10-21-2006 at 05:06 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH public / private key authentication problems thronh Linux - Security 7 06-14-2006 11:21 AM
Can someone explain the basics of private-key authentication through SSH? lowpro2k3 Linux - Security 2 06-08-2005 11:22 PM
SSH public/private key authentication with GnuPG keys? thinksincode Linux - Security 1 02-25-2005 02:33 PM
if they got my gpg private key...... qwijibow Linux - Security 1 10-21-2003 12:22 AM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 07:25 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration