Skip to content

SshConnectionManager

Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:44

new SshConnectionManager(transport: SshTransportConnection): SshConnectionManager;

Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:55

ParameterType
transportSshTransportConnection

SshConnectionManager

nextSetupPayload(): Promise<Buffer<ArrayBufferLike>>;

Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:66

Delivers the next connection-layer payload to callers during channel setup. Called by SshSessionChannel during openChannel() / requestSubsystem().

Channel setup happens sequentially before start() begins pumping, so we pull directly from the transport iterator here.

Promise<Buffer<ArrayBufferLike>>


openExecChannel(command: string): Promise<SshSessionChannel>;

Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:103

Opens a session channel and runs the given command on it. Must be called before start().

ParameterType
commandstring

Promise<SshSessionChannel>


openSubsystemChannel(subsystemName: string): Promise<SshSessionChannel>;

Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:89

Opens a session channel and starts the SFTP subsystem on it. Must be called before start().

ParameterType
subsystemNamestring

Promise<SshSessionChannel>


start(): Promise<void>;

Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:120

Starts the main dispatch loop. Returns a Promise that resolves when the connection closes cleanly, or rejects on a fatal transport error.

Call this after all channels have been opened and the application is ready to receive data.

Promise<void>