http://www.perlmonks.org?node_id=1080169


in reply to Net::SCP::Expect Windows XP

Net::SCP and Net::SCP::Expect are two different unrelated modules.

Net::SCP::Expect requires Expect which doesn't work on Windows (well, actually, it does works under Cygwin perl).

Net::SCP may work on Windows but it doesn't support password authentication.

You may like to check Net::SSH2 or Net::SSH::Any or, if you can use SFTP instead of SCP, Net::SFTP::Foreign+Net::SFTP::Foreign::Backend::Net_SSH2+Net::SSH2.

Replies are listed 'Best First'.
Re^2: Net::SCP::Expect Windows XP
by anttikutoja (Initiate) on Mar 31, 2014 at 06:01 UTC

    Hello all,

    Many thanks for the replies. I tried Net::SSH but it also failed with a message that I should "Install a proper OS"! :)

    I guess I will have to write my own uploader. Shame because the GNU/Linux version in perl is working perfectly.

      I think you mean Net::OpenSSH which does not support Windows. Net::SSH is a different unrelated module which, BTW, works on Windows but doesn't support password authentication.