Skip to main content
Use `-o` to prevent console issues finding there way into the output file
Source Link
  • List the keys you have: gpg --list-secret-keys
  • Export the key: gpg --export-secret-key name >o ~/my-key.asc --export-secret-key name
  • Copy it on another machine;
  • Import the key: gpg --import my-key.asc
  • List the keys you have: gpg --list-secret-keys
  • Export the key: gpg --export-secret-key name > ~/my-key.asc
  • Copy it on another machine;
  • Import the key: gpg --import my-key.asc
  • List the keys you have: gpg --list-secret-keys
  • Export the key: gpg -o ~/my-key.asc --export-secret-key name
  • Copy it on another machine;
  • Import the key: gpg --import my-key.asc
Source Link
Serj Sp
  • 639
  • 5
  • 2

  • List the keys you have: gpg --list-secret-keys
  • Export the key: gpg --export-secret-key name > ~/my-key.asc
  • Copy it on another machine;
  • Import the key: gpg --import my-key.asc