in reply to How do I debug a problem with Net:SSH

Oooh I think I just found something interesting...

Later in the script I scp the file to another server. I have to use Net::SCP::Expect for this server since the whole key thing isn't set up. So my very first line of the script after the #! is use Net::SCP::Expect. When I commented that out, everything worked fine for getting the file from the first server.

Can I not use Net::SCP and Net::SCP:Expect in the same script??

  • Comment on Net::SCP and Net::SCP::Expect in the same script