in reply to Net::SFTP::Recursive problem with ssh_args => [use_pty => 0 ]
That's telling you that Net::SFTP, which underlies Net::SFTP::Recursive, only supports SSH2 and not SSH1. So takeout the protocol => '2 1' because it isn't necessary.host.fqdn.tld: sftp: Sending SSH2_FXP_INIT
Second, I'd change debug => 'true' to debug => 1 because it's easier to read. Then your script should start something like this:
From what I can see, I think that your server expects SSH1, but it's not getting it:-).#!/usr/bin/perl use strict; use warnings; use Net::SFTP::Recursive; use Data::Dumper; my $host = '127.0.0.1'; my %cfg = ( user => 'user', password => 'password', debug => 1, ); my $sftp = Net::SFTP::Recursive->new($host, %cfg);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SFTP::Recursive problem with ssh_args => [use_pty => 0 ]
by salva (Canon) on Mar 03, 2011 at 09:31 UTC |