in reply to Failed to connect the server using Net::SSH::Perl
Anyway, I guess your problem is that your host keys are not listed on ~/.ssh/known_hosts. You can add them as follows:
my @hosts = qw(foo1.bar.com foo2.bar.com ...); for (@hosts) { system "ssh $_ -o PreferredAuthentications=publickey -o StrictHostKe +yChecking=no true" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Failed to connect the server using Net::SSH::Perl
by saji (Initiate) on Apr 19, 2010 at 14:49 UTC | |
by salva (Canon) on Apr 19, 2010 at 14:56 UTC |