Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: scp file from windows10 to unix server

by vinoth.ree (Monsignor)
on Feb 18, 2020 at 18:54 UTC ( #11113121=note: print w/replies, xml ) Need Help??

in reply to Re: scp file from windows10 to unix server
in thread scp file from windows10 to unix server

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...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11113121]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2020-06-01 17:36 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (6 votes). Check out past polls.