sthirumalai has asked for the wisdom of the Perl Monks concerning the following question:
The Script is stopping at the login method... leaving me atuse strict; use warnings; use Net::SSH::W32Perl; my $host = shift @ARGV; my $user = shift @ARGV; my $pass = shift @ARGV; my $cmd = shift @ARGV; my $ssh = Net::SSH::Perl->new($host, debug => 1, protocol => 2); $ssh->login($user, $pass); my @sV= $ssh->cmd($cmd); .... .... .... $ssh->close();
I am able to connect to target system through putty ssh interface. but with script im stopped at this login... Any comments why this is happening... I am using valid user credentials. Appreciate your help. Thanks, Thiru... ... Computing shared secret key. Verifying server signature. Waiting for NEWKEYS message. Send NEWKEYS. Enabling encryption/MAC/compression. Sending request for user-authentication service. Service accepted: ssh-userauth. Trying empty user-authentication request. Trying password authentication. Authentication methods that can continue: publickey,gssapi-with-mic,pa + +ssword. Next method to try is publickey. Next method to try is password. Permission denied at win32.pl line 11
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: User Authentication is not working in Net::SSH::W32Perl
by jethro (Monsignor) on Mar 10, 2010 at 17:54 UTC | |
by sthirumalai (Novice) on Mar 11, 2010 at 17:02 UTC | |
|
Re: User Authentication is not working in Net::SSH::W32Perl
by Khen1950fx (Canon) on Mar 10, 2010 at 22:29 UTC |