in reply to Re: Net::SCP can't connect to Windows server
in thread Net::SCP can't connect to Windows server

No, forgetting to load Net::SCP::Expect would result is a very different error. Of course, that means the OP didn't post the code he actually ran, which is greatly going to limit the help we can give and the effort we will give.
  • Comment on Re^2: Net::SCP can't connect to Windows server

Replies are listed 'Best First'.
Re^3: Net::SCP can't connect to Windows server
by perlfun (Initiate) on Nov 02, 2011 at 00:09 UTC
    Thank you all for your responses. The problem has been solved. I have to specify the directory on the windows side as:
    my $destdir = '/C/Data/';
    instead of
    my $destdir = "C:\\Data\\";
Re^3: Net::SCP can't connect to Windows server
by perlfun (Initiate) on Nov 01, 2011 at 18:12 UTC
    Thank you very much for your reply. My actual command line is:
    scp /tmp/data.txt user@123.456.789.24:"C:\\Data\\"
    after password prompt, it worked fine. My first question is: how do I specify windows destination directory? I used:
    my $destdir = '"C:\\Data\\"';
    I got the error: scp timed out while trying to connect to "C at ./net_scp.pl line 33 What is the correct directory specification on the windows side? Thanks much.