SshConnectionManager
Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:44
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SshConnectionManager(transport: SshTransportConnection): SshConnectionManager;Defined in: src/protocols/ssh/connection/SshConnectionManager.ts:55
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
transport | SshTransportConnection |
Returns
Section titled “Returns”SshConnectionManager
Methods
Section titled “Methods”nextSetupPayload()
Section titled “nextSetupPayload()”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.
Returns
Section titled “Returns”Promise<Buffer<ArrayBufferLike>>
openExecChannel()
Section titled “openExecChannel()”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().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
command | string |
Returns
Section titled “Returns”Promise<SshSessionChannel>
openSubsystemChannel()
Section titled “openSubsystemChannel()”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().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
subsystemName | string |
Returns
Section titled “Returns”Promise<SshSessionChannel>
start()
Section titled “start()”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.
Returns
Section titled “Returns”Promise<void>