I have used Seahorse to create a GPG key for public key encryption.
I want to use the same key on another machine.
How do I get the key - public and private, into a usb drive and then into seahorse on the other machine?
Thank you!
I have used Seahorse to create a GPG key for public key encryption.
I want to use the same key on another machine.
How do I get the key - public and private, into a usb drive and then into seahorse on the other machine?
Thank you!
Linux-libre ask for it
Coreboot Free software to replace proprietary BIOS
Trisquel a fully free GNU/Linux-libre distribution
Open Source does not mean Free My Spec Earthlings
I don't know about Seahorse specifically, but you can copy GPG keys (public and private) between machines by copying the ~/.gnupg folder from your current account on the old machine to your account on the new machine.
Thank you, thenewguy!
What is the path to /.gnupg? I did a search for it on thenk file system and nothing turned up.
I think that the . in /.gnupg means that it is a hidden file. Maybe I need to tweak my folder browser to show hidden files somehow...
Linux-libre ask for it
Coreboot Free software to replace proprietary BIOS
Trisquel a fully free GNU/Linux-libre distribution
Open Source does not mean Free My Spec Earthlings
You can also export the secret key from the terminal, as long as it will be imported on another GPG machine.
Useful links:Code:gpg --export-private-key [key-ID] -ao keyname.asc
https://help.ubuntu.com/community/GnuPrivacyGuardHowto
http://www.gnupg.org/documentation/manpage.en.html
Can't think of anything profound or witty.
My Blog: http://gonzothegeek.blogspot.co.uk/
I tried this:
and this:Code:gpg --export-private-key [12345] -ao mykeyname.asc
Both times I received the following error message:Code:gpg --export-private-key 12345 -ao mykeyname.asc
Code:gpg: Invalid option "--export-private-key"
Linux-libre ask for it
Coreboot Free software to replace proprietary BIOS
Trisquel a fully free GNU/Linux-libre distribution
Open Source does not mean Free My Spec Earthlings
Sorry, my mistake.
Have a look at the man page in the second link in my previous post. It details all the different options available.Code:gpg --export-private-keys [key-ID] -ao keyname.asc
Can't think of anything profound or witty.
My Blog: http://gonzothegeek.blogspot.co.uk/
Sorry, the path ~/.gnupg is in your home folder. The "~" at the beginning is a symbol which means your home folder. So if your username is "robert" then the folder with your keys is
/home/robert/.gnupg/
I tried looking for the /.gpg folder, but it is hidden and I do not know how to reveal hidden files. I don't know how to switch from having icons depicting the path in the folder browser to having a text line where I can type something in. So I can't use the copying the contents of the .gpg folder method at the moment.
I tried the command line to export the .asc file, and I finally got that to work. I checked the file contents in a text editor and it looked good. I transferred it to another machine and succesfully imported it into Seahorse.
Unfortuately, it arrived in the "Other Keys" section, instead of my private keys section. I can use it to encrypt a file and send it to the owner - myself! But I can't use it to decrypt a message, I believe. Also, I expected to see a photograph on the key, but there wasn't one there.
I think I must have exported the public key, even though I tried to export a private key using that command in the command line.
Sorry to trouble you with this!
Linux-libre ask for it
Coreboot Free software to replace proprietary BIOS
Trisquel a fully free GNU/Linux-libre distribution
Open Source does not mean Free My Spec Earthlings
To export your complete key, public/private, from Seahorse do this:
- In Seahorse click the "My Personal Keys" tab;
- select the key you want to export and right-click and select properties;
- click the Details tab and click the button for "Export Complete Key"
Bookmarks