Skip Menu |

This queue is for tickets about the Net-SFTP-Foreign CPAN distribution.

Report information
The Basics
Id: 98899
Status: rejected
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: hans [...] matfyz.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: IO::Pty required even though url contains username and pasword
Hello! I have tested IO::All::SFTP with full url, e.g. 'sftp://username:password@hostname.domainname/' on Windows XP. Error message I get is: password authentication not available, IO::Pty is not installed or failed to load: Can't locate IO/Pty.pm in @INC (you may need to install the IO::Pty module) (@INC contains: ...) at D:/bin/Strawberry/perl/site/lib/Net/SFTP/Foreign/Backend/Unix.pm line 256. at D:/bin/Strawberry/perl/site/lib/LWP/Protocol/sftp.pm line 71. When installing IO::Pty: OS unsupported at Makefile.PL line 6. This module requires a POSIX compliant system to work. Try cygwin if you need this module on windows. Can you please make requirement of IO::Pty only on demand? Everything is working on Linux because IO::Tty is installed. Thanks HG
Subject: Re: [rt.cpan.org #98899] IO::Pty required even though url contains username and pasword
Date: Mon, 15 Sep 2014 07:56:02 -0700
To: "bug-Net-SFTP-Foreign [...] rt.cpan.org" <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message -----
> From: https://launchpad.net/~hans-matfyz via RT <bug-Net-SFTP-Foreign@rt.cpan.org> > To: > Cc: > Sent: Monday, September 15, 2014 4:35 PM > Subject: [rt.cpan.org #98899] IO::Pty required even though url contains username and pasword > > Mon Sep 15 10:35:00 2014: Request 98899 was acted upon. > Transaction: Ticket created by https://launchpad.net/~hans-matfyz > Queue: Net-SFTP-Foreign > Subject: IO::Pty required even though url contains username and pasword > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: hans@matfyz.cz > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=98899 > > > > Hello! > > I have tested IO::All::SFTP with full url, e.g. > 'sftp://username:password@hostname.domainname/' on Windows XP. > > Error message I get is: > password authentication not available, IO::Pty is not installed or failed to > load: Can't locate IO/Pty.pm in @INC (you may need to install the IO::Pty > module) (@INC contains: ...) at > D:/bin/Strawberry/perl/site/lib/Net/SFTP/Foreign/Backend/Unix.pm line 256. at > D:/bin/Strawberry/perl/site/lib/LWP/Protocol/sftp.pm line 71. > > When installing IO::Pty: > OS unsupported at Makefile.PL line 6. > This module requires a POSIX compliant system to work. Try cygwin if you need > this module on windows. > > Can you please make requirement of IO::Pty only on demand?
IO::Pty is only loaded on demand, when you use password authentication. The think is that you are actually using password authentication and the module is required, but unfortunatelly it doesn't work on Windows. As a workaround you can use Net::SFTP::Foreign with the Net::SSH2 backend (Net::SFTP::Foreign::Backend::Net_SSH2) or alternatively with the plink utility
Dne Po 15.zář.2014 10:56:13, sfandino@yahoo.com napsal(a): Show quoted text
> > Can you please make requirement of IO::Pty only on demand?
> > IO::Pty is only loaded on demand, when you use password > authentication. > > The think is that you are actually using password authentication and > the module is required, but unfortunatelly it doesn't work on Windows. > > As a workaround you can use Net::SFTP::Foreign with the Net::SSH2 > backend (Net::SFTP::Foreign::Backend::Net_SSH2) or alternatively with > the plink utility
Thank you. This bug report could be closed. On Windows, if you don't use Cygwin, it is neccesary for example to set the ssh_cmd option to plink.