----- Original Message ----- From: "A. Pollock" <[EMAIL PROTECTED]> . . > Can't locate object method "_session_channel" via package "Net::SSH::Perl::SSH1" > at D:/apps/Perl/site/lib/Net/SFTP.pm line 78, <GEN0> line 1. > > I have installed W32Perl.pm and changed 'use Net::SSH::W32Perl' to > 'use Net::SSH::W32Perl' and 'my $ssh = Net::SSH::Perl->new' to > 'my $ssh = Net::SSH::W32Perl->new' in the SFTP.pm. Line 78 > refers to this: 'my $channel = $ssh->_session_channel;' in > sub _open_channel in SFTP.pm. > > There is a warning in W32Perl.pm about Windows only supporting > SSH2. I wonder if this has something to do with this error, seeing > as how the error message refers to SSH1. Should I be somehow forcing > SFTP or W32Perl to use SSH2? >
Seems to me there's also another reason that you shouldn't be using SSH1 protocol - namely the following from the Net::SFTP documentation: "Net::SFTP is a pure-Perl implementation of the Secure File Transfer Protocol (SFTP) - file transfer built on top of the SSH2 protocol." So ... yes, I think you need to specify SSH2 - and I think that's done somehow from within Net::SSH::W32Perl .... but I don't know the details. Someone here should be able to provide more detailed information if you need it. Cheers, Rob _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
