authenticate
Authenticate using the strategy-based AuthHandler flow.
The library drives the authentication per RFC 4252, calling back into the handler for materials. The flow is: none → publickey probe → sign → keyboard-interactive → password.
Return
AuthResult indicating success or failure
AuthResult.Error if connect has not been called successfully
Parameters
username
SSH username
handler
Callback handler providing authentication materials