Skip to content

Instantly share code, notes, and snippets.

@kujiy
Created September 4, 2021 06:52
Show Gist options
  • 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