Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module

by salva (Abbot)
on May 02, 2014 at 22:27 UTC ( #1084854=note: print w/ replies, xml ) Need Help??


in reply to Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module

Use Net::OpenSSH or Net::OpenSSH::Parallel.
  • Comment on Re: Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module

Replies are listed 'Best First'.
Re^2: Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module
by Technext (Acolyte) on May 03, 2014 at 18:23 UTC
    Thanks for the suggestion but i have to use identity file and i could not find any option for specifying the same (while creating connection) in either of the modules.
      key_path
        Thanks! I tried using Net::OpenSSH with key_path option.
        my $key_path = "/home/tom/.ssh/id_file"; my $ssh = Net::OpenSSH->new( $host, key_path => $key_path, ); $ssh->scp_put("$war_full_path", "$ENV{HOME}") or die "SCP failed: " . +$ssh->error;
        Now it fails with the message:
        Permission denied (publickey).
        SCP failed: unable to establish master SSH connection: master process exited unexpectedly at /home/tom/deploy.pl line 64

        Line 64 is the above line where i am using scp_put

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-06-26 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.