Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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??

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 imbibing at the Monastery: (13)
As of 2015-07-30 21:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls