in reply to Re: Failed to connect the server using Net::SSH::Perl
in thread Failed to connect the server using Net::SSH::Perl

yes, I'm able to login to the servers using ssh. Once I use ssh from cmd line the entry will be added in the identity_file and the script is gathering the data for that particular servers. But when it comes to other servers its fails.
  • Comment on Re^2: Failed to connect the server using Net::SSH::Perl

Replies are listed 'Best First'.
Re^3: Failed to connect the server using Net::SSH::Perl
by Corion (Patriarch) on Apr 19, 2010 at 13:47 UTC

    From looking through the Net::SSH::Perl documentation, I see no way of adding a host to the known identities. I recommend you get the list of trusted servers and their fingerprints from your system administrators.

      Thanks for your try. Let me check with my SA. Do you have any idea to find/generate the fingerprint key?
        Do you have any idea to find/generate the fingerprint key?

        First, I think you're actually referring the known_hosts file, not the identity file (which contains your private key).  The former contains the public keys (fingerprints) of the hosts, and thus you can't generate those keys yourself — unless you're the admin of those hosts...