Files
Netcatty/domain/singleChannelSshBanner.shared.d.ts
T
又是一条懒汉 5805d15746 feat(ssh): add single-channel SSH option for bastion hosts (#3458)
Add a host and group toggle for bastions that allow one session channel per TCP connection. After the handshake, BHostSSH, TERM-SSHD, and CLOUDBILITY take that path automatically. File transfer uses a separate SFTP login, and the interactive terminal is not given another exec, SFTP, copy/split, or port-forward channel.

The manual toggle remains for bastions that still advertise OpenSSH.
2026-09-29 18:01:04 +08:00

18 lines
796 B
TypeScript

declare module "./singleChannelSshBanner.shared.cjs" {
export function remoteSoftwareRequiresSingleChannel(remoteSshVersion?: string): boolean;
export function remoteDisallowsChunkedChannelWrite(remoteSshVersion?: string): boolean;
export function optionsForPeerSingleChannel<T extends { singleChannelSsh?: boolean }>(
options: T,
conn?: { _remoteVer?: string } | null,
): T;
}
declare module "@/domain/singleChannelSshBanner.shared.cjs" {
export function remoteSoftwareRequiresSingleChannel(remoteSshVersion?: string): boolean;
export function remoteDisallowsChunkedChannelWrite(remoteSshVersion?: string): boolean;
export function optionsForPeerSingleChannel<T extends { singleChannelSsh?: boolean }>(
options: T,
conn?: { _remoteVer?: string } | null,
): T;
}