Skip to content

Instantly share code, notes, and snippets.

@adamamyl
Last active August 29, 2015 14:09
Show Gist options
  • Save adamamyl/43fb1fb4365d0ad00436 to your computer and use it in GitHub Desktop.
Save adamamyl/43fb1fb4365d0ad00436 to your computer and use it in GitHub Desktop.
Push key files to all oKF machines i can login on
adam@aragog:~/projects/okf/okfn-infra/audit$
for H in `awk '/^s/ {print $1}' 11-2014 | sort`
do
ssh ${H} 'wget http://hendricks.amyl.org.uk/~adam/ssh-keys -O ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment