Note to self- use ssh-copy-id
So, I work in http://rc.usf.edu. It’s quite nice. Wanna know my first epic fail there?
for i in `cat adminhosts`; do
scp .ssh/id_rsa.pub root@$i:~/.ssh/authorized_keys2;
done
I clobbered all of the administrator’s sshkeys with my own. It’s all fixed, don’t worry.. for the most part. For future reference:
for i in `cat adminhosts`; do ssh-copy-id root@$i; done
All in a day’s work, apparently. No way I’m gonna be able to live that down.