Syntactic Confectionery Delight | |
PerlMonks |
Re: SSH connection to 100 routersby karlgoethebier (Abbot) |
on Feb 24, 2018 at 11:26 UTC ( [id://1209893]=note: print w/replies, xml ) | Need Help?? |
"...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
In Section
Seekers of Perl Wisdom
|
|