hivessh
Version:
HiveSsh is an innovative library designed to streamline SSH2 connections and simplify task execution on Linux servers.
23 lines • 887 B
TypeScript
import { CmdChannelOptions, CmdExecOptions, SshChannel, SshChannelExit } from "./SshExec.js";
import { SshHost } from "./SshHost.js";
export interface ProcessEnv {
TZ?: string;
PWD: string;
[key: string]: string | undefined;
}
export declare class ExecSession {
host: SshHost;
env: ProcessEnv;
timeoutMillis?: number;
sudo?: boolean;
constructor(host: SshHost, env: ProcessEnv);
clone(): ExecSession;
cd(newPath: string): void;
setEnv(key: string, value: string): void;
unsetEnv(key: string): void;
parseCmdChannelOptions(options?: CmdChannelOptions): CmdChannelOptions;
execChannel(cmd: string, options?: CmdChannelOptions): Promise<SshChannel>;
parseCmdExecOptions(options?: CmdExecOptions): CmdExecOptions;
exec(cmd: string, options?: CmdExecOptions): Promise<SshChannelExit>;
}
//# sourceMappingURL=ExecSession.d.ts.map