@aerocorp/cli
Version:
AeroCorp CLI 5.1.0 - Future-Proofed Enterprise Infrastructure with Live Preview, Tunneling & Advanced DevOps
72 lines • 1.89 kB
TypeScript
/**
* AeroCorp CLI 5.0.0 - Native SSH Service
* Pure Node.js SSH implementation that works on Windows without WSL
* Uses ssh2 library for cross-platform SSH functionality
*/
export interface SSHConnectionConfig {
host: string;
port: number;
username: string;
privateKey?: Buffer;
password?: string;
timeout?: number;
}
export interface SSHCommandOptions {
timeout?: number;
follow?: boolean;
encoding?: string;
}
export declare class NativeSSHService {
private configService;
private defaultConfig;
private client?;
constructor();
/**
* Connect to SSH server using Node.js ssh2 library (Windows native)
*/
connect(config?: Partial<SSHConnectionConfig>): Promise<boolean>;
/**
* Execute command via SSH
*/
executeCommand(command: string, options?: SSHCommandOptions): Promise<{
success: boolean;
output: string;
error?: string;
}>;
/**
* Get Docker logs using pure Node.js SSH
*/
getDockerLogs(applicationId: string, options?: {
lines?: number;
follow?: boolean;
timeout?: number;
}): Promise<void>;
/**
* Load SSH private key from standard locations
*/
private loadSSHKey;
/**
* Generate SSH key pair using Node.js crypto (Windows compatible)
*/
generateSSHKeyPair(): Promise<{
publicKey: string;
privateKey: string;
}>;
/**
* Test SSH connection
*/
testConnection(): Promise<boolean>;
/**
* Disconnect SSH client
*/
disconnect(): Promise<void>;
/**
* Check if SSH is available (either native Windows SSH or Node.js ssh2)
*/
checkSSHAvailability(): Promise<{
nativeSSH: boolean;
nodeSSH: boolean;
recommended: 'native' | 'node' | 'none';
}>;
}
//# sourceMappingURL=ssh-native.d.ts.map