Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: scp file from windows10 to unix server

by vinoth.ree (Monsignor)
on Feb 18, 2020 at 18:54 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found