Skip to content

Instantly share code, notes, and snippets.

@kujiy
Created September 4, 2021 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kujiy/299f5143b6df066b268a36f7fb211e27 to your computer and use it in GitHub Desktop.
Save kujiy/299f5143b6df066b268a36f7fb211e27 to your computer and use it in GitHub Desktop.
authorized_keys-from-Github.sh
USER=kujiy
curl -s https://api.github.com/users/$USER/keys | jq -r ".[0].key" > ~/.ssh/authorized_keys
chmod 600 authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment