Thomas Johnson
Thomas Johnson

Reputation: 11778

How can I copy my public ssh key to hundreds of computers without retyping my password hundreds of times?

I want to put my public ssh key on hundreds of computers. Usually I just do "ssh-copy-id remoteHost001" and then type in my password. Obviously it's a pain to retype my password a hundred times. What's the easiest way to put my public key on hundreds of computers without wearing my fingers down to nubs?

Upvotes: 0

Views: 223

Answers (1)

Chris Ortner
Chris Ortner

Reputation: 816

ssh commands don't provide command line parameters for passwords to prevent users from hard-scripting their passwords. You can use this trick or this one to pass the password to the command automatically.

Upvotes: 2

Related Questions