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

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

by salva (Abbot)
on May 05, 2014 at 10:32 UTC ( #1085031=note: print w/ replies, xml ) Need Help??


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

Are you able to log from the command line?

ssh -vv -i "/home/tom/.ssh/id_file" hostname


Comment on Re^5: Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module
Download Code
Re^6: Unable to do SCP on multiple machines using Perl's Net::SCP::Expect module
by Technext (Acolyte) on May 05, 2014 at 11:39 UTC

    I'm really sorry for the blunder salva. I was not passing the user name while creating the connection. Now SSH is working fine on both the machines.

    After this worked, i realized the mistake that I was committing while using the earlier module (Net::SCP::Expect). Now the script is working with that module too. To simplify the explanation, in the first SCP, i needed to run the SCP as user A while in second SCP, which was on a different server, I needed a different user. However, in my script, I was using the same user A for performing SCP on both the machines and thatís why it wasnít working.

    Your pointer helped me in realizing the blunder I was committing. Thanks a lot! :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-06 23:57 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 (85 votes), past polls