Hello,
I'm trying to transfer a file from Windows 2000 to a unix machine.
Using Net:SFTP, debug on, I get the following error:
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 1.5.
GHART-626-001: No compat match: .
GHART-626-001: Connection established.
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?
I've seen many postings on the web and newsgroups about problems
using SFTP.pm on Windows machine. I've seen plenty of solutions
proffered but haven't actually seen anyone say they've gotten it
to work. Has anyone gotten SFTP.pm to work on Windows?
Our server is on a sun solaris machine, the ftp software is
proftpd-1.2.10. In the configuration file there is this line:
TLSProtocol SSLv23, if that means anything. Here is my script:
use Net::SFTP;
my $host = 'abra.tselk.edu';
my $user = 'aportlock';
my $password = 'gatsby014';
my $sftp = Net::SFTP->new ($host,
'user' => $user,
'password' => $password,
'debug' => 1,
'ssh_args' => ['port' => 2021]
) || die $@;
$sftp->put("info.txt");
--
_______________________________________________
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