-
-
Save jaderfeijo/415b8709bd00cacf30760828b98d281a to your computer and use it in GitHub Desktop.
Exporting and importing GPG keys over SSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh user@remote gpg --export-secret-key KeyId | gpg --allow-secret-key-import --import |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on key ID. | |
ssh user@remote gpg --export KeyId | gpg --import | |
# Based on key owner name. | |
ssh user@remote gpg --export -a KeyOwnerName | gpg --import |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg --export-secret-key KeyId | ssh user@remote gpg --allow-secret-key-import --import |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg --export KeyId | ssh user@remote gpg --import |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment