LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-14-2013, 11:58 AM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
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, 12:53 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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 id_dsa.pub. Those import into Putty just fine. Using Tectia SSH, I have such things as id_dsa_2048_a and id_dsa_2048_a.pub, 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, 01:11 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
The linux box seems fine -- I can use my ubuntu workstation and connect using ssh from the command line just fine:
Code:
ssh -i /path/to/file.pem user@machine.foo.bar
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?
 
  


Reply



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 02:28 AM
Connect to Linux KRDC Server from a windows box? orbit Slackware 3 06-12-2009 09:59 AM
unable to connect Slackware Using Windows putty gfujoseph Slackware 5 12-20-2007 08:41 AM
Can't connect to Linux box from one windows machine keimdf Linux - Networking 1 01-04-2007 09:10 PM
Cannot Connect from windows xp to linux slackware box swatward Linux - Networking 0 11-07-2005 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 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
Open Source Consulting | Domain Registration