Hi, thanks so much for the reply. A little background: I am using ActivePerl 5.26.3 build 2603 64 bit. I made a couple of changes based on your comments see below:
#!/usr/bin/perl use Net::OpenSSH; $Net::OpenSSH::debug = ~0; print "open secure shell\n"; my $ssh = Net::OpenSSH->new('10.0.0.29',timeout => 30, user => 'root', + password => 'viking',port => 22); print "returned from secure shell\n"; $ssh->error and print "Unable to connect: " . $ssh->error; print "Connected to $ssh\n"; undef $ssh;
Output
open secure shell # open_ex: ['ssh','-V'] # io3 mloop, cin: 0, cout: 1, cerr: 0 # io3 fast, cin: 0, cout: 1, cerr: 0
I guess what bothers me is that control never seems to return from the constructor. It goes in, but doesn't come out.
In reply to Re^2: basic openssh connectivity
by BrianDStark
in thread basic openssh connectivity
by BrianDStark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |