Created
September 4, 2021 06:52
-
-
Save kujiy/299f5143b6df066b268a36f7fb211e27 to your computer and use it in GitHub Desktop.
authorized_keys-from-Github.sh
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
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