Skip to content

Instantly share code, notes, and snippets.

@kasparsd
Created November 21, 2015 23:34
Show Gist options
  • Save kasparsd/d2f6a1e5eed437a80b2f to your computer and use it in GitHub Desktop.
Save kasparsd/d2f6a1e5eed437a80b2f to your computer and use it in GitHub Desktop.
Copy your PGP public key via SSH to your server
#!/bin/bash
# Stream your PGP public key via SSH to pgp.txt on your server
gpg --export -a | ssh user@example.com 'cat > ~/pgp.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment