[Ssh-sftp-perl-users] call Carp::croak() i a module ?!
Brought to you by:
dbrobins
From: ThoSi <pe...@th...> - 2005-04-29 10:52:08
|
Hi Folks I want to use Net:SSH::Perl to automatically run some commands on = several=20 hosts. All the hostnames are stored in a database. I decided to use Net::SSH::Perl because I can configure everything I = need.=20 The auth is done by a SSH-Key (RSA). Unfortunately not all of the hosts = in the DB have=20 the SSH Key stored in their ~/.ssh/authorized_keys. When I try to = connect to one of=20 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?=20 If a hosts doesn't have this ssh-key, I don't want to abort my script, I = wnat to continue with=20 the next hostname instead. Thanks in advance --Thomas |