in reply to Help...Issue with Net::SSH::Perl Module
#!/usr/bin/perl use strict; use warnings; use Net::SSH::W32Perl; my $host = 'localhost'; my $user = 'user'; my $pass = 'password'; my $cmd = 'ls'; my $ssh = new Net::SSH::W32Perl($host, debug => 1); $ssh->login($user, $pass); my ($out, $err, $exit) = $ssh->cmd($cmd); print $out;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help...Issue with Net::SSH::Perl Module
by toddyce (Initiate) on Nov 26, 2010 at 04:10 UTC | |
by Illuminatus (Curate) on Nov 26, 2010 at 05:31 UTC | |
by toddyce (Initiate) on Nov 26, 2010 at 06:18 UTC | |
by Khen1950fx (Canon) on Nov 26, 2010 at 07:29 UTC | |
by Anonymous Monk on Nov 26, 2010 at 07:43 UTC |