[bmallik@null-001485a93da4 ~]$ perl -w RDF.pl *************************************************************************** Qwest computers and the Qwest computer network are Qwest property. Only authorized persons may use them and only for legal and proper purposes as determined solely by Qwest. Users consent to the monitoring of their use. Employees must use Qwest computers and the network in accordance with the Qwest Code of Conduct, subject to discipline for misuse. Customer use is governed by the Qwest Acceptable Use Policy. -------------------------------------------------------------------------- NOTE: This server is NOT under IBM full support. Instead it is under a Maintenance Plus contract and support is through a Qwest support group. For UNIX system adminstration support and work requests for this system, please refer to the instructions found on this URL: http://sm-unix.uswc.uswest.com or contact the Help Desk at 1-877-828-4357 (see TheQ web page). *************************************************************************** Couldn't establish SSH connection: unable to establish master SSH connection: control command failed: child exited with code 1 at RDF.pl line 14. [bmallik@null-001485a93da4 ~]$ #### #!/usr/bin/perl use Net::OpenSSH; #use Math::Pari; my $host="hplwp638"; my $user="radarop"; my $password="XXXXX"; #$InHandle = $ssh->input_log("RDFinlog.txt"); #$OutHandle = $ssh->output_log("RDFoutlog.txt"); my $ssh= Net::OpenSSH->new($host,user=>$user, passwd=>$password); $ssh->error and warn "Couldn't establish SSH connection: ". $ssh->error; #print "Trying to connect to $host now\n"; #$ssh->waitfor(String => 'hplwp638#[/home/radarop]'); #print $ssh->cmd("who"); my @output = $ssh->capture("who"); print @output; #### my $ssh= Net::OpenSSH->new($host,user=>$user, passwd=>$password, strict_mode => 0, ctl_dir => "/tmp/~.libnet-openssh-perl" ); #### [bmallik@null-001485a93da4 ~]$ perl -w RDF.pl Couldn't establish SSH connection: unable to establish master SSH connection: the authenticity of the target host can't be established, the remote host public key is probably not present on the '~/.ssh/known_hosts' file at RDF.pl line 14.