Help answer threads with 0 replies.
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 05-19-2015, 02:02 PM   #1
Registered: Mar 2012
Posts: 169

Rep: Reputation: Disabled
Generating private key on server to download and access from any machine


I generated and uploaded a public key through SSH Client software to our dedicated server. It works fine from the computer I have generated.

My laptop windows become corrupt and I downloaded this key from my email that is attached previously.

Now I am trying to import in SSH Client but its throwing error that unable to read this key file

Can I generate public key from our dedicated server and upload as attachment in my email so that whenever I want I can use and access our server from any machine?

Please advise

Thanks in anticipation

Last edited by Raakh5; 05-19-2015 at 02:29 PM.
Old 05-19-2015, 02:38 PM   #2
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Yes you can create a new public key file if the server is using a private file. See the openssl man page to figure out how to do this. However as far as I know when generating a key it just spits you out a number not a file, so I am unsure why your getting an error in your client as its probably just a text file. If we knew what SSH client you were using or what errors its giving you then we might be able to help you more.
Old 05-19-2015, 02:45 PM   #3
Registered: Mar 2012
Posts: 169

Original Poster
Rep: Reputation: Disabled
Originally Posted by exvor View Post
If we knew what SSH client you were using or what errors its giving you then we might be able to help you more.
SSH Secure Shell (TM)
Version 3.2.9

When am trying to import my previous working key then following message displayed by SSH Secure Shell Client software:
Error opening file "filePath" for reading

Thanks again


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
Restrict access to SSL private key using SELinux on RHEL 6.2? darthfoolish Linux - Security 3 03-29-2014 12:27 PM
How to access a remote machine inside a private LAN? Mohit Asija Linux - Server 6 11-27-2013 11:43 AM
Ssh access only using private key vishesh Linux - Server 2 01-20-2011 04:09 AM
Generating Public and Private Keys using putty key gen ghandizzle8 Linux - Newbie 4 09-17-2010 12:47 AM
Importing private key from key server ManiDhillon Linux - General 2 07-09-2010 07:56 PM > Forums > Linux Forums > Linux - Newbie

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