Skip Menu |

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

Report information
The Basics
Id: 77120
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: DOUGW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.72_02
Fixed in: (no value)



Subject: Option for nonstandard password prompts
I'm connecting to a slightly broken host (not mine, so no control over it) where the prompt is: "xxxxx's password" with no trailing "?" or ":". Net::SFTP::Foreign expects a trailing "?" or ":" so it hangs (note: previous bug about precedence problem still exists on other hosts). It would be helpful if you could pass in a regex as an option to the constructor to resolve problems like this. Something like: -passwordprompt => qr/s password$/, Or an optional string or whatever.
version 1.74_01 now available from CPAN supports a password_prompt option accepting a string or a regular expression. For your particular case: $sftp = Net::SFTP::Foreign->new(..., password_prompt => "'s password"); should work.