llass61 has asked for the wisdom of the Perl Monks concerning the following question:
Do I need the remote site enabled for scp?-22LIBSSH2_ERROR_CHANNEL_REQUEST_DENIEDUnable to complete request for +channel-process-startup
Thanks for any help!!!!!!!!use Net::SSH2; my $host = 'ftp.??????.com'; my $user = 'user'; my $password = 'password'; $ssh2 = Net::SSH2->new(); print "\nconnecting to $host...\n"; $ssh2->connect($host); print "\nauth to $host...\n"; $ssh2->auth_password($user,$password); print "\ngetting sftp hdl...\n"; my $sftp = $ssh2->sftp(); print "scp get\n"; $ssh2->scp_get("test/out/Tesia220044-20081029175508-03.txt", "./aaa.tx +t"); print $ssh2->error, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ssh2 open file problem
by afresh1 (Hermit) on Oct 31, 2008 at 16:41 UTC | |
by llass61 (Novice) on Oct 31, 2008 at 18:18 UTC | |
by afresh1 (Hermit) on Oct 31, 2008 at 18:43 UTC | |
by llass61 (Novice) on Oct 31, 2008 at 20:12 UTC | |
by afresh1 (Hermit) on Oct 31, 2008 at 20:20 UTC |