Skip to content

Instantly share code, notes, and snippets.

@aidenscott2016
Forked from Avaq/pull-private.sh
Created February 6, 2023 01:04
Show Gist options
  • Save aidenscott2016/0c65f26e6146ab297f10af6012d5a809 to your computer and use it in GitHub Desktop.
Save aidenscott2016/0c65f26e6146ab297f10af6012d5a809 to your computer and use it in GitHub Desktop.
Exporting and importing GPG keys over SSH
ssh user@remote gpg --export-secret-key KeyId | gpg --allow-secret-key-import --import --batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment