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

You can add a warn statement to find out why it failed. Something like this.
warn $scp->{errstr};
Then you can check your logs to see what the error actually is.