Could you please suggest a way to detect if the scp service is available on a server without the need for an account and/or password?
I am trying to figure out how to tell if
Net::SCP->new( "hostname", "username" );
function fails to connect to remote because of service is unavailable at remote host or because of authentication failure.