n8n-nodes-customssh
Version:
n8n community node for advanced SSH connections with configurable ciphers and network device support
20 lines (19 loc) • 828 B
TypeScript
import { SshConnectionOptions } from '../interfaces/ConnectionOptions';
import { CipherAlgorithm } from 'ssh2';
/**
* Service for managing device configurations
*/
export declare class ConfigManager {
/**
* Get configuration from network device
*/
static getDeviceConfig(host: string, port: number, username: string, password: string, configType: string, cipher: CipherAlgorithm, options: SshConnectionOptions): Promise<string>;
/**
* Apply configuration to network device
*/
static applyDeviceConfig(host: string, port: number, username: string, password: string, configText: string, applyMethod: string, saveAfterApply: boolean, cipher: CipherAlgorithm, options: SshConnectionOptions): Promise<{
success: boolean;
linesApplied: number;
errors: string[];
}>;
}