Can a private key be copied to another machine?

Anthony E. Greene agreene@pobox.com
Fri Aug 16 19:49:01 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16-Aug-2002/10:36 -0400, "R. Bradley Tilley" <rtilley@vt.edu> wrote:
>On a Linux system, simply copy the .gnupg directory from your home directory. 
>Be sure to write down the permissions on all the files and the directory 
>itself before you copy it. Place the directory onto the new Linux PC using 
>the same permissions, and you're ready to go... assuming that gpg is 
>installed on both systems.

Tar keeps permissions, and gzip compresses the file, so create a tarball
of the directory like this:

  cd
  tar -zcvf gpgdir.tar.gz .gnupg/

Assuming you don't need to keep anything in the existing ~/.gnupg on the
new machine, just unpack the tarball like this:

  cd
  tar -zxvf gpgdir.tar.gz


Tony
- -- 
Anthony E. Greene <mailto:agreene@pobox.com>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05      HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <agreene@pobox.com>

iD8DBQE9XTsVpCpg3WyUI50RAt0vAJ9+WnLY5jGQu859w975V4LbNWoodgCeOIl0
Kus26gStMDRZIx0ahjE6Qlg=
=a7Kr
-----END PGP SIGNATURE-----