LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-26-2010, 10:27 AM   #1
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 43

Rep: Reputation: 15
Question SFTP using PPK key file [SOLVED]


Hi there,

I have been provided with a PPK file to connect to a remote server using SFTP. I've also been given a username and password.

I created a user test and created a .ssh directory in their home directory. I've put the ppk file in here and renamed it id_rsa (though I'm pretty sure I'm not correct in doing so)
When I SFTP using sftp test@remoteserver.com I get prompted for the key password - which I don't know and am presuming is blank, so I just hit enter
Then is prompts me for the user password which I give it.
However, it falls down here. I used the -v option to see where it stops - which tells me:
debug1: Trying private key: /home/test/id_rsa
debug1: PEM_read_PrivateKey failed


I presume this is because SFTP is expecting a .PEM key instead of a PPK?

I'm a bit lost as I'm pretty new to Linux. Any help or pointers very much appreciated.

I'm using CentOS 5.3.

Thanks!

Last edited by exactiv; 03-26-2010 at 11:12 AM. Reason: Solved
 
Old 03-26-2010, 11:09 AM   #2
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 43

Original Poster
Rep: Reputation: 15
Never mind! I got it sorted. I converted the PPK file to an OpenSSH file instead (using PUTTYGen). Works perfectly now.

Thanks for reading.
 
  


Reply

Tags
authentication, certificate, sftp


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
SFTP throwing "End of file" when doing SFTP transfer in perl exceed1 Programming 5 03-06-2010 01:34 PM
SFTP without password and without public/ private key iamakshay Programming 2 10-19-2009 04:35 PM
Removing ssh authenticatin private key ppk moor93 Linux - Networking 5 07-01-2009 09:10 AM
How to add a putty generated .ppk key ZAMO Linux - General 2 07-10-2008 07:49 PM
promptless 'do you accept this server key' with scp/sftp helsing Linux - Newbie 4 03-19-2008 12:24 AM


All times are GMT -5. The time now is 02:12 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 Google+: linuxquestions
Open Source Consulting | Domain Registration