bighnaraj has asked for the wisdom of the Perl Monks concerning the following question:
SO This error comes just after it try to be connected ....I dont know wehre it gets stucked.I am not a perl expert.I am giving the code also as below ...[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 pur +poses as determined solely by Qwest. Users consent to the monitoring of the +ir 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 syste +m, 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 conn +ection: control command failed: child exited with code 1 at RDF.pl li +ne 14. [bmallik@null-001485a93da4 ~]$
Now I am getting below erroe after changing my code in a single line ....#!/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->erro +r; #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;
Errormy $ssh= Net::OpenSSH->new($host,user=>$user, passwd=>$password, stric +t_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 conn +ection: 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error in Login by useing Net::OpenSSH
by Plankton (Vicar) on Nov 10, 2011 at 05:59 UTC | |
|
Re: Error in Login by useing Net::OpenSSH
by salva (Canon) on Nov 10, 2011 at 07:25 UTC | |
|
Re: Error in Login by useing Net::OpenSSH
by Plankton (Vicar) on Nov 11, 2011 at 06:34 UTC | |
by Anonymous Monk on Apr 02, 2013 at 19:30 UTC | |
by bprasad (Initiate) on Dec 18, 2013 at 12:26 UTC |