$ for i in `seq 60 75`; do ssh -o "StrictHostKeyChecking no" username@mrh009$i.host.com '[ ! -e .ssh ] && mkdir .ssh; echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEArnIJhZCiJz8arKHd1C5gi2B7G22VuMeqDGcj8jv+sdfsdfsdfsdfsdfsdfsfdsfNBekqviSUFXiG1cBNpNxaAstOWyWmKaS1oefeNJ5waihlzR5V9QTTdBCrYavHj4viPMLWfm70eOhZhOzXQjl4x/xSrh/sadfasdfasdf= " > .ssh/authorized_keys && chmod 700 .ssh '; done;
Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Thursday, October 22, 2015
Installing authorized_keys over a range of hosts automatically
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment