This script installs your public ssh keys from GitHub to your ~/.ssh/authorized_keys
.
$ curl -L https://git.io/JTZHT | bash -s 0x77dev
$ curl -L https://git.io/JTZHT | bash -s <username>
#!/bin/bash | |
[ ! -d "~/.ssh" ] && mkdir ~/.ssh | |
[ ! -d "~/.ssh/authorized_keys" ] && touch ~/.ssh/authorized_keys | |
curl https://api.github.com/users/$1/keys | jq ".[].key" | sed 's/\"//g' | sed 's/\ssh-rsa //g' >> ~/.ssh/authorized_keys |
#!/bin/bash | |
curl -L https://git.io/JTZHT | bash -s 0x77dev |