LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How to migrate public and private keys to another computer? (http://www.linuxquestions.org/questions/slackware-14/how-to-migrate-public-and-private-keys-to-another-computer-4175434207/)

ahlr 10-26-2012 10:32 AM

How to migrate public and private keys to another computer?
 
I need to migrate my keys to another machine and make a secure backup. What better way to do this?

tux_dude 10-26-2012 11:12 AM

You can simply copy them to the other computer via external media (if the computers are not connected) or via ssh over a network. If you are using a physical media, it should be encrypted for best security. For ssh keys, copying ~/.ssh will backup both your private and public keys. I can't recall where pgp keys are stored, possibly ~/.gpg for OpenPGP.

qweasd 10-26-2012 01:55 PM

Quote:

Originally Posted by ahlr (Post 4815499)
I need to migrate my keys to another machine and make a secure backup. What better way to do this?

You may have to be more specific.

ssh configuration (which is used to authenticate remote shell connections, both incoming and outgoing) is stored in $HOME/.ssh/

gpg configuration (which is used to encrypt, decrypt, sign, and verify files) is stored in $HOME/.gnupg/

arun5002 10-26-2012 02:01 PM

Quote:

I need to migrate my keys to another machine and make a secure backup. What better way to do this?
SCP Could be a best method of exchanging keys between two host.


All times are GMT -5. The time now is 01:15 PM.