|
Posted by Thonas Siegenthaler on April 29, 2005, 10:09 am
Please log in for more thread options
Hi Folks
I want to usw Net:SSH::Perl to automatically run some commands on several
hosts.
All the hostnames are stored in a database.
I decided to use Net::SSH::Perl because I can configure everything I need.
The auth is
done by a SSH-Key (RSA). Unfortunately not all of the hosts in the DB have
the SSH
Key stored in their ~/.ssh/authorized_keys. When I try to connect to one of
these
hosts using SSH2, my script dies because of a Carp::croak() call in the
Net::SSH::Perl::AuthMgr module (line 142).
Is there a way to turn off this "die" and just get a error-message instead?
If a hosts doesn't
have this ssh-key, I don't want to abort my script, I wnat to continue with
the next hostname
instead.
Thanks in advance
--Thomas
|