LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-26-2019, 07:16 PM   #1
greavette
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Rep: Reputation: Disabled
How do I convert a putty private key to be used as a private key on a RedHat or Ubuntu Server


Hello Team,

I've created a public and private key in puttygen that allows me to connect my putty to any of my Red Hat or Ubuntu servers. All my Linux servers have the public key for this private key.

Now I have one Red Hat server where I would also like to have the ability to connect to any of my Red Hat or Ubuntu servers from one Red Hat Master Server. Since all my Red Hat and Ubuntu Servers already have this public key installed, I thought it would make sense to use the same private key I created for putty and convert this so that I can use the same private key from this one Red Hat Master server to all my other Red Hat and Ubuntu servers.

Is this possible to convert my putty private key and install this on Red Hat to do what I need?
If so, what are the steps to convert this private key.
And what are the steps to install this converted private key on a Red Hat Server?

Thank you in advance for any help you can provide me.
 
Old 06-26-2019, 07:43 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,758

Rep: Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224
Keys are between computers, so no, you cannot use the key from your Windows ‘puter between two of your other servers.

You CAN generate a key for your RH server to connect to other servers. I away from my desktops at the moment, but search for ssh-keygen or “generate ssh keys red hat” to find how to do what puttygen did on the Windows ‘puter.

I think you’ll need to generate keys on/for each source computer, but they can then be used on several target computers, just as your putty keys could be used.
 
Old 06-26-2019, 08:40 PM   #3
greavette
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks @scasey for taking the time to respond.

The reason I thought that I could convert my putty private key to something that I can use on Linux is because in puttygen there is a conversion tab. I can convert my Private key to OpenSSH key. I was hoping that OpenSSH key would be something I can use on Linux so I don't have to generate a new private/public key and recopy all the new public keys to my linux computers.

Thanks.
 
  


Reply

Tags
putty, ssh



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Use a Private Key and PuTTY to Log into Your Server Securely LXer Syndicated Linux News 0 06-11-2019 12:02 PM
Import rsa private key into putty cccc Linux - Software 6 01-01-2010 07:44 PM
private key for putty melvinong Linux - Server 2 11-13-2007 05:33 AM
private key conversion (putty to openssh) lostinvietnam Linux - Security 1 10-11-2006 08:01 AM
public/private key authentication with PuTTY NetAX Linux - Security 5 10-27-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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