D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] gpg

 

On 05/02/13 23:07, paul sutton wrote:
> 
> What files do I need to copy between computers so that I can transfer /
> copy my gpg key from one computer to another.    If i reinstall Linux at
> anytime i would havce to do this in order to keep using my exisiting gpg
> set up.

Assuming stuff is in default locations you need the directory "~/.gnupg"
and its contents except for the file "~/.gnupg/random_seed" which should
not be copied.

I believe if you don't use the old copy of random_seed it isn't
important, but since it is recreated as needed, deleting this file
before copying seems the easiest approach.

You need to preserve ownership and permissions, since gnupg won't work
if the permissions are too generous and someone might attack your files
when they have the wrong permissions (probably only in a really hostile
environment but hey it is simplest to keep them consistent).

rsync and scp can both preserve permissions (option "-p" on both) and
other file meta data whilst sending your files over an encrypted channel
so look to be tools of choice.

 Simon

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq