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 01-14-2013, 12:58 PM   #1
Senior Member
Registered: Dec 2004
Posts: 1,027

Rep: Reputation: 67
Need to connect to linux box from windows using Putty

I've got a windows 7 box. I've downloaded puTTY and puttygen. For some reason I cannot convert my private_key.PEM file to PPK format as needed by puTTY. When I try to Do Conversions->Import Key on the PEM file in putty gen, I get an "unexpected end of file" error.

Can anyone tell me how to fix this issue?
Old 01-14-2013, 01:53 PM   #2
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,210

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
What ssh server are you running on your Linux box that uses .pem files? I am only familiar with those for installing SSL certs for web servers, not for individual pubkey ssh access. For example, using OpenSSH, my private key is in id_dsa and my public key is in Those import into Putty just fine. Using Tectia SSH, I have such things as id_dsa_2048_a and, but I think I might have named those files manually at some time in the past. I use Tectia SSH server on some servers, but to be honest I haven't set it up for many years and what I'm running now I've somewhat forgotten how I set it up. I like OpenSSH more than Tectia, but Tectia is common also - you just have to pay for it. I remember having to convert OpenSSH keys to Tectia format though. Just like you are trying to do with Putty. But those .pem files you speak of are just containers for certs as far as I know. I have not used them in conjunction with standard SSH access before.
Old 01-14-2013, 02:11 PM   #3
Senior Member
Registered: Dec 2004
Posts: 1,027

Original Poster
Rep: Reputation: 67
The linux box seems fine -- I can use my ubuntu workstation and connect using ssh from the command line just fine:
ssh -i /path/to/file.pem
The question is I think more about puttygen than anything else. What is wrong with the file such that puttygen cannot import it and convert it to ppk format? Is it that each line is terminated \r\n rather than just \n?

Alternatively, might there be some way to convert the pem file to PPK using my linux workstation?


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
[SOLVED] How do I programmatically connect to a Linux box running ssh from a Windows pc bhammond8587 Linux - General 9 05-31-2010 03:28 AM
Connect to Linux KRDC Server from a windows box? orbit Slackware 3 06-12-2009 10:59 AM
unable to connect Slackware Using Windows putty gfujoseph Slackware 5 12-20-2007 09:41 AM
Can't connect to Linux box from one windows machine keimdf Linux - Networking 1 01-04-2007 10:10 PM
Cannot Connect from windows xp to linux slackware box swatward Linux - Networking 0 11-07-2005 07:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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