n8n-nodes-customssh
Version:
n8n community node for advanced SSH connections with configurable ciphers and network device support
16 lines (15 loc) • 603 B
TypeScript
import { Client, ClientChannel, CipherAlgorithm } from 'ssh2';
import { SshConnectionOptions } from '../interfaces/ConnectionOptions';
/**
* Manager for SSH connections
*/
export declare class SshConnectionManager {
/**
* Create a new SSH client connection
*/
static createConnection(host: string, port: number, username: string, password: string, cipher: CipherAlgorithm, options: SshConnectionOptions): Promise<Client>;
/**
* Create a shell stream from an SSH client
*/
static createShell(client: Client, options: SshConnectionOptions): Promise<ClientChannel>;
}