Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by salva (Monsignor)
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
Re^2: Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module
by Technext (Novice) 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 perusing the Monastery: (14)
As of 2014-07-31 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (250 votes), past polls