in reply to Re^2: Net::OpenSSH Problem
in thread Net::OpenSSH Problem
what happens when you run the following code?
my $ssh = Net::OpenSSH->new($host, user => $USERNAME, password => $PASSWORD, strict_mode => 0); $ssh->error and die "Couldn't establish SSH connection: " . $ssh->erro +r; $ssh->system('!pwd') or die "remote command failed: " . $ssh->error; print "pwd done\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Net::OpenSSH Problem
by kburns1969 (Novice) on Sep 12, 2013 at 16:59 UTC | |
by salva (Canon) on Sep 12, 2013 at 17:18 UTC | |
by kburns1969 (Novice) on Sep 12, 2013 at 17:30 UTC |
In Section
Seekers of Perl Wisdom