Note to self- use ssh-copy-id

So, I work in It’s quite nice. Wanna know my first epic fail there?

for i in `cat adminhosts`; do 
  scp .ssh/ root@$i:~/.ssh/authorized_keys2; 

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.