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" }
In reply to Re: Failed to connect the server using Net::SSH::Perl
by salva
in thread Failed to connect the server using Net::SSH::Perl
by saji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |