Skip to content

SshAuthSession

Defined in: src/protocols/ssh/auth/SshAuthSession.ts:98

Runs SSH user authentication over an encrypted transport connection.

Call this after SshTransportConnection.connect() completes. Returns a generator of inbound payloads for the upper (connection) layer to consume. Resolves with an SshAuthResult on success; throws AuthenticationError on failure.

new SshAuthSession(transport: SshTransportConnection): SshAuthSession;

Defined in: src/protocols/ssh/auth/SshAuthSession.ts:99

ParameterType
transportSshTransportConnection

SshAuthSession

authenticate(options: SshAuthOptions): Promise<SshAuthResult>;

Defined in: src/protocols/ssh/auth/SshAuthSession.ts:101

ParameterType
optionsSshAuthOptions

Promise<SshAuthResult>