Created
February 13, 2021 15:00
-
-
Save obfusk/48f6a73c63a0e12cee1fa9a9df02a594 to your computer and use it in GitHub Desktop.
ssh authorized_keys from github
This file contains 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
#!/bin/bash | |
# Usage: github-sshkeys.sh USERNAME >> ~/.ssh/authorized_keys | |
curl "https://api.github.com/users/$1/keys" | jq -r '.[] | .key' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment