> ----- Original Message -----
> From: Sisyphus <[EMAIL PROTECTED]>

> ----- 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.

Net::SSH::W32Perl isn't very large. I tried a variety of techniques
to specify a protocol, setting protocol => 2 in ssh_args, etc., but
still get the same error referring to SSH1.

I tried brute force changing a few instances of 'SSH1' to 'SSH2' in
Net::SSH::Perl to see what would happen and got this error (with
debug information):

GHART-626-001: Reading configuration data /.ssh/config
GHART-626-001: Reading configuration data /etc/ssh_config
GHART-626-001: Connecting to abra.tselk.edu, port 2021.
GHART-626-001: Socket created, turning on blocking...
GHART-626-001: Remote protocol version ., remote software version
GHART-626-001: Net::SSH::Perl Version 1.29, protocol version 2.0.
GHART-626-001: No compat match: .
GHART-626-001: Connection established.
Can't locate object method "compression" via package "Net::SSH::Perl::SSH2" at D
:/apps/Perl/site/lib/Net/SSH/Perl/Packet.pm line 254, <GEN0> line 1.

I know my "solution" was simplistic but at least the error
is from "Net::SSH::Perl::SSH2". The offending line is in
"sub read_poll_ssh1" however. It would be nice to specify the
protocol in the correct manner and have perl listen to it but
I can't figure out how.






-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to