LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Generating private key on server to download and access from any machine (https://www.linuxquestions.org/questions/linux-newbie-8/generating-private-key-on-server-to-download-and-access-from-any-machine-4175543040/)

Raakh5 05-19-2015 01:02 PM

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

exvor 05-19-2015 01:38 PM

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.

Raakh5 05-19-2015 01:45 PM

Quote:

Originally Posted by exvor (Post 5364635)
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


All times are GMT -5. The time now is 12:31 PM.