Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: SSH connection to 100 routers

by karlgoethebier (Abbot)
on Feb 24, 2018 at 11:26 UTC ( #1209893=note: print w/replies, xml ) Need Help??


in reply to SSH connection to 100 routers

"...I cant manually connect to 900 servers to establish the SSH key..."

Probably you can delegate this to a script. What about something like this: sshpass -f secrets.file ssh-copy-id user@host?

I don't remember the exact syntax. Please see sshpass and ssh-copy-id for details.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2022-01-19 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?