Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by salva (Monsignor)
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 (Novice) 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 perusing the Monastery: (7)
As of 2014-07-31 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls