AuthFailed Event
Fires when a single authentication attempt is failed.
Syntax
sshclient.on('AuthFailed', [callback])
Callback
The 'callback' is called when the 'AuthFailed' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.authenticationType
Remarks
This event is fired each time a single authentication attempt fails. AuthType parameter specifies the type of authentication.
As SSH may try a number of authentication attempts of different types or with different parameters (such as public keys) during one session, this event may be fired more than once. It is not critical and may not lead to closing of the connection.