Skip to content

Instantly share code, notes, and snippets.

@obfusk
Created February 13, 2021 15:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obfusk/48f6a73c63a0e12cee1fa9a9df02a594 to your computer and use it in GitHub Desktop.
Save obfusk/48f6a73c63a0e12cee1fa9a9df02a594 to your computer and use it in GitHub Desktop.
ssh authorized_keys from github
#!/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