webssh2-server
Version:
A Websocket to SSH2 gateway using xterm.js, socket.io, ssh2
24 lines (23 loc) • 623 B
TypeScript
/**
* SSH algorithm configuration structure
* @pure
*/
export interface Algorithms {
cipher: string[];
kex: string[];
hmac: string[];
compress: string[];
serverHostKey: string[];
}
/**
* Predefined SSH algorithm presets for different security profiles
* @pure
*/
export declare const ALGORITHM_PRESETS: Record<string, Algorithms>;
/**
* Get algorithm preset by name
* @param presetName - Name of the preset (modern, legacy, strict)
* @returns Algorithm configuration or undefined if not found
* @pure
*/
export declare function getAlgorithmPreset(presetName: string): Algorithms | undefined;