class Net::SSH::AuthenticationFailed

This exception is raised when authentication fails (whether it be public key authentication, password authentication, or whatever).