GA_L has asked for the wisdom of the Perl Monks concerning the following question:
Received disconnect message: Too many authentication failures for abc at /usr/local/lib/perl5/site_perl/5.10.0/Net/SSH/Perl/AuthMgr.pm line + 143
sub connectToServer{ my $username = "abc"; my $serverName = $_[0]; chomp($serverName); my $ssh; eval { $ssh = Net::SSH::Perl->new($serverName) or die "Unable to connect"; }; if ($@){ warn "Connection failed: $@\n"; return "Problem to connect"; }else{ $ssh->login($username); return $ssh; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl - stops script execution on authentication failure
by choroba (Cardinal) on Apr 23, 2010 at 13:14 UTC | |
|
Re: Net::SSH::Perl - stops script execution on authentication failure
by sierpinski (Chaplain) on Apr 23, 2010 at 16:23 UTC | |
by GA_L (Initiate) on Apr 23, 2010 at 18:57 UTC | |
|
Re: Net::SSH::Perl - stops script execution on authentication failure
by Khen1950fx (Canon) on Apr 23, 2010 at 22:58 UTC | |
|
Re: Net::SSH::Perl - stops script execution on authentication failure
by salva (Canon) on Apr 24, 2010 at 07:06 UTC | |
by GA_L (Initiate) on Apr 26, 2010 at 08:35 UTC |