LinuxQuestions.org
Review your favorite Linux distribution.
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 05-19-2015, 01:02 PM   #1
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

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


Hello,

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 01:29 PM.
 
Old 05-19-2015, 01:38 PM   #2
exvor
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, 01:45 PM   #3
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
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
 
  


Reply


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 11:27 AM
How to access a remote machine inside a private LAN? Mohit Asija Linux - Server 6 11-27-2013 10:43 AM
Ssh access only using private key vishesh Linux - Server 2 01-20-2011 03:09 AM
Generating Public and Private Keys using putty key gen ghandizzle8 Linux - Newbie 4 09-16-2010 11:47 PM
Importing private key from key server ManiDhillon Linux - General 2 07-09-2010 06:56 PM


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