Skip to content

Instantly share code, notes, and snippets.

@ak1t0
Last active September 6, 2018 09:00
Show Gist options
  • Save ak1t0/f5bfe5e4983ac36b70cdf0d6d12c9965 to your computer and use it in GitHub Desktop.
Save ak1t0/f5bfe5e4983ac36b70cdf0d6d12c9965 to your computer and use it in GitHub Desktop.
add GitHub SSH key to authorize_keys
#!/bin/bash
users=("spring-raining" "myr523" "ak1t0")
i=0
mkdir ~/.ssh
for user in ${users[@]}; do
curl -s -S https://github.com/${users[i]}.keys >> ~/.ssh/authorized_keys
let i++
done
echo "done!!"
@ak1t0
Copy link
Author

ak1t0 commented Sep 6, 2018

wget https://gist.github.com/ak1t0/f5bfe5e4983ac36b70cdf0d6d12c9965/raw/050609488fe659d3df53a5977ceb5bbcf54dfc3f/regkey.sh &&  chmod +x ./regkey.sh && ./regkey.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment