Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: SSH connection to 100 routers

by karlgoethebier (Abbot)
on Feb 24, 2018 at 11:26 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-19 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found