Ensure that ssh_authenticate fails gracefully