in reply to net::ssh::Perl connecting to f-secure ssh server
#!/usr/local/bin/perl -w use strict; use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new("host",(protocol=>'2',port=>'52000',debu +g=>'true')); $ssh->login("user","pass"); my ($stdout, $stderr, $exit) = $ssh->cmd("date /t"); print "exit=$exit\nstdout=$stdout\nstderr=$stderr\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: net::ssh::Perl connecting to f-secure ssh server
by tweetiepooh (Hermit) on Oct 07, 2007 at 17:39 UTC |