We've written a simple script to test ssh login via Net::SSH:erl but we can only get the script to work when being executed as root and not as user.
This is the simple script, any help would be very much appreciated.
Thanks again
This is the simple script, any help would be very much appreciated.
Code:
use Net::SSH::Perl;
$host = "my.server.com";
$user = "root";
$passwd = "foo";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $passwd);
$ssh->cmd("ls /home/virtual/admin89/var/[URL unfurl="true"]www/cgi-bin/tmp[/URL] > /home/virtual/admin89/var/[URL unfurl="true"]www/cgi-bin/tmp/txt.dat");[/URL]