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);
In reply to Re: Net::SFTP::Recursive problem with ssh_args => [use_pty => 0 ]
by Khen1950fx
in thread Net::SFTP::Recursive problem with ssh_args => [use_pty => 0 ]
by gman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |