in reply to Problem using Net:SSH:Perl

Looks like this isn't authenticating properly. I guess it doesn't like the way you've done:-
$scon->login($user || $this_user,$pass);
Try it as a simple if to see if that makes a difference, also print out the $user and $pass to see that the input was picked up properly:-
print "User:$user\nPass:$pass\n"; if ($user) { $scon->login($user,$pass); } else { $scon->login($this_user,$pass); }


Lyle

Replies are listed 'Best First'.
Re^2: Problem using Net:SSH:Perl
by galaxy123 (Initiate) on Oct 15, 2007 at 14:32 UTC
    Lyle Thank you for your time. Appreciate your help. I tried what you suggested, even hardcoding values but no luck. Still fails at the same place. Shown below is the output from truss towards the end of the execution. Any advise please ?
    stat64("/apps/perl/lib/5.6.0/sun4-solaris/Crypt/DSA/Util.pmc", 0xFFBED +978) Err#2 ENOENT open64("/apps/perl/lib/5.6.0/sun4-solaris/Crypt/DSA/Util.pm", O_RDONLY +) Err#2 ENOENT stat64("/apps/perl/lib/5.6.0/Crypt/DSA/Util.pmc", 0xFFBED978) Err#2 EN +OENT open64("/apps/perl/lib/5.6.0/Crypt/DSA/Util.pm", O_RDONLY) Err#2 ENOEN +T stat64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Crypt/DSA/Util.pmc +", 0xFFBED978) Err#2 ENOENT open64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Crypt/DSA/Util.pm" +, O_RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/site_perl/5.6.0/Crypt/DSA/Util.pmc", 0xFFBED978 +) Err#2 ENOENT ioctl(10, TCGETA, 0xFFBECF74) Err#25 ENOTTY stat64("/apps/perl/lib/5.6.0/sun4-solaris/Math/BigInt/GMP.pmc", 0xFFBE +CD88) Err#2 ENOENT open64("/apps/perl/lib/5.6.0/sun4-solaris/Math/BigInt/GMP.pm", O_RDONL +Y) Err#2 ENOENT stat64("/apps/perl/lib/5.6.0/Math/BigInt/GMP.pmc", 0xFFBECD88) Err#2 E +NOENT open64("/apps/perl/lib/5.6.0/Math/BigInt/GMP.pm", O_RDONLY) Err#2 ENOE +NT stat64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Math/BigInt/GMP.pm +c", 0xFFBECD88) Err#2 ENOENT open64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Math/BigInt/GMP.pm +", O_RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/site_perl/5.6.0/Math/BigInt/GMP.pmc", 0xFFBECD8 +8) Err#2 ENOENT open64("/apps/perl/lib/site_perl/5.6.0/Math/BigInt/GMP.pm", O_RDONLY) +Err#2 ENOENT stat64("/apps/perl/lib/site_perl/Math/BigInt/GMP.pmc", 0xFFBECD88) Err +#2 ENOENT open64("/apps/perl/lib/site_perl/Math/BigInt/GMP.pm", O_RDONLY) Err#2 +ENOENT stat64("./Math/BigInt/GMP.pmc", 0xFFBECD88) Err#2 ENOENT open64("./Math/BigInt/GMP.pm", O_RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/5.6.0/sun4-solaris/Math/BigInt/FastCalc.pmc", 0 +xFFBECD88) Err#2 ENOENT open64("/apps/perl/lib/5.6.0/sun4-solaris/Math/BigInt/FastCalc.pm", O_ +RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/5.6.0/Math/BigInt/FastCalc.pmc", 0xFFBECD88) Er +r#2 ENOENT open64("/apps/perl/lib/5.6.0/Math/BigInt/FastCalc.pm", O_RDONLY) Err#2 + ENOENT stat64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Math/BigInt/FastCa +lc.pmc", 0xFFBECD88) Err#2 ENOENT open64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Math/BigInt/FastCa +lc.pm", O_RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/site_perl/5.6.0/Math/BigInt/FastCalc.pmc", 0xFF +BECD88) Err#2 ENOENT open64("/apps/perl/lib/site_perl/5.6.0/Math/BigInt/FastCalc.pm", O_RDO +NLY) Err#2 ENOENT stat64("/apps/perl/lib/site_perl/Math/BigInt/FastCalc.pmc", 0xFFBECD88 +) Err#2 ENOENT open64("/apps/perl/lib/site_perl/Math/BigInt/FastCalc.pm", O_RDONLY) E +rr#2 ENOENT stat64("./Math/BigInt/FastCalc.pmc", 0xFFBECD88) Err#2 ENOENT open64("./Math/BigInt/FastCalc.pm", O_RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/5.6.0/sun4-solaris/Crypt/DSA/Signature.pmc", 0x +FFBEE5B8) Err#2 ENOENT open64("/apps/perl/lib/5.6.0/sun4-solaris/Crypt/DSA/Signature.pm", O_R +DONLY) Err#2 ENOENT stat64("/apps/perl/lib/5.6.0/Crypt/DSA/Signature.pmc", 0xFFBEE5B8) Err +#2 ENOENT open64("/apps/perl/lib/5.6.0/Crypt/DSA/Signature.pm", O_RDONLY) Err#2 +ENOENT stat64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Crypt/DSA/Signatur +e.pmc", 0xFFBEE5B8) Err#2 ENOENT open64("/apps/perl/lib/site_perl/5.6.0/sun4-solaris/Crypt/DSA/Signatur +e.pm", O_RDONLY) Err#2 ENOENT stat64("/apps/perl/lib/site_perl/5.6.0/Crypt/DSA/Signature.pmc", 0xFFB +EE5B8) Err#2 ENOENT ioctl(8, TCGETA, 0xFFBEDBB4) Err#25 ENOTTY ioctl(6, TCGETA, 0xFFBEF6F4) Err#25 ENOTTY write(4, " 6 JA9F087E2 d1E <931EC7".., 52) Err#32 EPIPE