in reply to scp file from windows10 to unix server

As a side note to what has already been said, have you considered looking into Net::SFTP::Foreign?

  • Comment on Re: scp file from windows10 to unix server

Replies are listed 'Best First'.
Re^2: scp file from windows10 to unix server
by vinoth.ree (Monsignor) on Feb 18, 2020 at 18:54 UTC
    Hi marto,

    This is very useful, I used this module(just download and put into the perl site path) and completed the task.

    my $private_key = $ENV{'APPDATA'}."\\ssh_key\\putty_gen_private_key.pp +k"; $sftp = Net::SFTP::Foreign->new($server, user => $user, ssh_cmd => 'plink', more => [ -i => $private_key] ); $sftp->die_on_error("Unable to establish SFTP connection");

    used put() methed to copy the files from windows to unix.


    All is well. I learn by answering your questions...