Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: SCP help

by codeacrobat (Chaplain)
on May 03, 2010 at 06:23 UTC ( #838034=note: print w/replies, xml ) Need Help??


in reply to SCP help

Hello, there are perl modules for this kind of job, e.g. Net::SFTP::Foreign, Net::SSH2. Maybe these modules help you to integrate ssh better into your perl scripts.

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

Replies are listed 'Best First'.
Re^2: SCP help
by salva (Canon) on May 03, 2010 at 10:57 UTC
    ... and Net::OpenSSH that being on an Unix OS, maybe Linux, it's probably the easiest one to install and use for SCP file copy.
    use Net::OpenSSH; my $ssh = Net::OpenSSH->new('root@foo.bar.com', passwd => $passwd, port => 223); $ssh->scp_put("/home/my/local/file/whatever.txt", "/my/remote/path_name");

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2021-09-20 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?