P is for Practical | |
PerlMonks |
Re: Downloading files from SFTP in windowsby tobyink (Canon) |
on Jan 02, 2013 at 10:56 UTC ( [id://1011246]=note: print w/replies, xml ) | Need Help?? |
Net::SFTP appears to use the getservbyname function to map a service name and protocol ("ssh", "tcp") to a port (22). The getservbyname function looks up the service name in the system's services file. On Unix this is typically /etc/services. On Windows, it's typically C:\Windows\System32\drivers\etc\services. Make sure that this file exists, and "ssh" is listed correctly.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|