schmichael / authzgithub

dum script for github keys > ssh/authorized_keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bash script to add ssh keys from Github to your ~/.ssh/authorized_keys file.

Or use a one liner like this to add all members of an organization $ORG to user $U:

curl -s https://api.github.com/orgs/${ORG}/members  | jq -r ".[].login" | xargs -I {} printf "https://github.com/{}.keys\n" | xargs curl -s >> /${U}/.ssh/authorized_keys

About

dum script for github keys > ssh/authorized_keys


Languages

Language:Shell 100.0%