use strict; use warnings; use Net::SSH2; my $host = 'ftp.?????.com'; my $user = 'user'; my $password = 'password'; my $ssh2 = Net::SSH2->new(); $ssh2->debug(1); print "\nconnecting to $host...\n"; $ssh2->connect($host) or die $ssh2->error; print "\nauth to $host...\n"; $ssh2->auth_password($user,$password) or die $ssh2->error; printf "Auth OK: %s\n", $ssh2->auth_ok; print "scp get\n"; $ssh2->scp_get("test/out/MyFile-03.txt") or die ssh2->error; $ssh2->disconnect();
In reply to Re^2: ssh2 scp question
by llass61
in thread ssh2 scp question
by llass61
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |