1
I am new to CGI scripting I am trying to connect to another server using Net::OpenSSH but giving the following error
#!/tools/openbin/perl/5.16.3/sparc-sun-solaris8/bin/perl
use strict;
use warnings;
use Net::OpenSSH;
my $host ="**********";
my $user_name = "*******";
my $password_value = "*********";
my $ssh = Net::OpenSSH->new(host => $host, user => $user_name, password => $password_value);
$ssh->error and die "SSH connection failed: " . $ssh->error;
This is giving the following error:
command-line: line 0: Bad configuration option: ServerAliveInterval
SSH connection failed: unable to establish master SSH connection: bad password or master process exited unexpectedly at ./test.pl line 11.