[Penguinheads] mass-append public SSH key

Eddy Mulyono eddymul at gmail.com
Fri Dec 29 13:57:00 PST 2006


Hi folks.

I want to append my public SSH key to /home/$USER/.ssh/authorized_keys
of many hosts.

$ scp ~eddy/.ssh/id_dsa.pub user at victim:/home/user/.ssh/eddy_id_dsa.pub
$ ssh user at victim 'cat /home/user/.ssh/eddy_id_dsa.pub >>
/home/user/.ssh/authorized_keys'

I spend a bit of time Googling around to no avail.

I'm pretty sure I'm not the only who need to do this.

Have any of you run into this situation? If so, do you use any tool to
automate this "key distribution"?

-Eddy
I got my python-pexpect and tentakel ready.


More information about the Penguinheads mailing list