Last active
May 8, 2022 04:12
-
-
Save andyfangdz/4b7df28424a3ede911e36845ff49145d to your computer and use it in GitHub Desktop.
Donate your box today: curl -L andf.us/keys | bash
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euxo pipefail | |
export "${GH_USERNAME:=andyfangdz}" | |
mkdir -p ~/.ssh && chmod 0700 ~/.ssh | |
curl -L https://github.com/${GH_USERNAME}.keys > ~/.ssh/authorized_keys | |
chmod 0600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment