Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Net::OpenSSH Problem

by kburns1969 (Novice)
on Sep 11, 2013 at 16:28 UTC ( [id://1053521]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    -bash-4.1$ ./test1.pl 
    # open_ex: ['ssh','-O','check','-T','-S','/home/kburns/.libnet-openssh
    +-perl/kburns-10.10.10.-20023-380016','-l','kburns','10.10.10.1','--']
    # _waitpid(20025) => pid: 20025, rc: 
    # open_ex: ['ssh','-S','/home/kburns/.libnet-openssh-perl/kburns-10.10
    +.10.-20023-380016','-l','kburns','10.10.10.1','--','!bash']
    
  2. or download this
    my $ssh = Net::OpenSSH->new($host, user => $USERNAME, password => $PAS
    +SWORD, str
    ict_mode => 0);
    ...
    $ssh->system('pwd') or die "remote command failed: " . $ssh->error;
    
    print "pwd done\n"; # never gets here. it hangs
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1053521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found