Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
holli just tried to open a soda bottle with a bottleopener
[holli]: ok, that doesn't *sound* that bad
[Corion]: holli: Was it a "twist-to-open" soda bottle? Or a German Mehrweg bottle with a twisty cap?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-09-25 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?