Authenticate Method
Authenticates the user.
Syntax
public func authenticate() throws -> Void
Remarks
This method authenticates the user against the SSHHost. If authentication succeeds this method returns without error. If authentication fails, or an error is encountered, the class .
The following common properties are applicable when calling this method:
- User (required)
- Password (required for password authentication)
- SSHCert (required for public key authentication)
- SSHHost (required)
- SSHPort
- AuthMode
- SSHEncryptionAlgorithms
Keyboard interactive authentication is handled through the SSHKeyboardInteractive event.