Skip to content

Instantly share code, notes, and snippets.

@vjm
Last active March 15, 2016 00:23
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 vjm/cfef584506199f61d151 to your computer and use it in GitHub Desktop.
Save vjm/cfef584506199f61d151 to your computer and use it in GitHub Desktop.
Add my public keys

curl -fsSL https://gist.githubusercontent.com/vjm/cfef584506199f61d151/raw/add_authorized_keys.sh | sh

#!/usr/bin/env bash
PUBLIC_KEYS=$(curl https://gist.githubusercontent.com/vjm/cfef584506199f61d151/raw/keys.txt)
mkdir -p ~/.ssh && echo $PUBLIC_KEYS >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSAQg2HYSsro4wOZGQuQ7sewRLhEmrcaQDJ33OANft+qlwdGqshZb0vhapCwDEecUD6pHQ5HX9MHZPJo/Yh6hvj9+JWsnWUXdJ6CMZSBanaVUxBGta0DiPpWztxGNshsOObfFW4pK3CIQ27VfNII7SqOV6y8n74yfKu/54FXVO2XLkJaliI7uYCbIr+c74yWYKb/zNPkKluO057iYFjwF72gC9j9rl7NHYN05nCxlJHNz69OZ39E4QBpFc0ev2+K2OKr1zo/pZ8vPGp5qmlALAez8ClSxf07hs3/nJaRpEoPfatFHjXBB1+osZbi+xjm2GIz1g5Ra2wgRW8efnjJb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment