Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: scp file from windows10 to unix server

by marto (Archbishop)
on Feb 18, 2020 at 12:30 UTC ( #11113097=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-06-02 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (19 votes). Check out past polls.

    Notices?