Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Please, give me some help:
How can I export PGP keys I used for registration on PPA and then import in virtual machine's Ubuntu?
Please, help me.

share|improve this question
    
You can View this and also installing seahorse would be helpful. Also found a Adding a Launchpad PPA's key to Ubuntu video –  atenz Jun 25 '12 at 12:32
    
And the official GPG wiki –  atenz Jun 25 '12 at 12:39
add comment

2 Answers 2

Have a look here and/or here.

share|improve this answer
add comment

This assumes you can copy-and-paste between the host and the virtual machine guest; it's easier than setting up sharing between the two, and more secure than emailing your private key to yourself, leaving key files lying around, etc.

  1. Host AND VM: Open a terminal, and sudo apt-get install xclip (a small tool to copy and paste to the clipboard from the command-line)
  2. Host: Type gpg --list-keys and select the 8-letter "pub" key you used for PPA signing, e.g. if the output is pub 2048D/ABCD0123 2012-05-02, you want ABCD0123.
  3. Host: Type gpg -a --export ABCD0123 | xclip
  4. VM: Type xclip -o | gpg --import, to add your public key.
  5. Host: Type gpg -a --export-secret-key ABCD0123 | xclip
  6. VM: Type xclip -o | gpg --allow-secret-key-import, to add your private key.

That's it!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.