Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-26-2012, 10:32 AM   #1
LQ Newbie
Registered: Jun 2012
Distribution: Slackware-Current
Posts: 28

Rep: Reputation: Disabled
Post 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?
Old 10-26-2012, 11:12 AM   #2
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 251

Rep: Reputation: 34
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.
Old 10-26-2012, 01:55 PM   #3
Registered: May 2010
Posts: 594

Rep: Reputation: Disabled
Originally Posted by ahlr View Post
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/
Old 10-26-2012, 02:01 PM   #4
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
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.


gnupg, gpg

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
Public and Private Keys??? ajeetraina Linux - Server 2 05-10-2008 03:15 PM
question about private and public keys mac1234mac Linux - Security 25 04-13-2006 03:04 PM
ssh public/private keys lord_darkhelmet Linux - Newbie 8 10-29-2005 04:14 PM
Using GPG without public or private keys darin3200 Linux - Security 3 01-10-2005 04:40 AM
Help with SSH and public/private keys stodge Linux - Security 5 05-14-2003 02:22 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:35 AM.

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