Fix fallback for failed ssh public key auth