Skip to main content

ErroSshCli

Type Alias ErroSshCli 

Source
pub type ErroSshCli = SshCliError;
๐Ÿ‘ŽDeprecated since 0.5.1:

use SshCliError from crate::errors

Expand description

Deprecated Portuguese alias for SshCliError.

Aliased Typeยง

pub enum ErroSshCli {
Show 24 variants Io(Error), Json(Error), TomlDe(Error), TomlSer(Error), SshConnection(String), SshAuthentication(String), ConnectionFailed(String), AuthenticationFailed, HostKeyChanged { host: String, port: u16, expected: String, obtained: String, }, CommandTooLong { max: usize, len: usize, }, SudoDisabled, SuPasswordMissing, ChannelFailed(String), SshTimeout(u64), CommandFailed { exit_code: i32, stderr: String, }, VpsNotFound(String), NoActiveVps, VpsDuplicate(String), FileNotFound(String), InvalidArgument(String), Timeout(u64), XdgDirectory, SchemaIncompatible { expected: u32, found: u32, }, Generic(String),
}

Variantsยง

ยง

Io(Error)

Underlying I/O error.

ยง

Json(Error)

JSON serialization or deserialization error.

ยง

TomlDe(Error)

TOML deserialization error.

ยง

TomlSer(Error)

TOML serialization error.

ยง

SshConnection(String)

SSH connection-layer error.

ยง

SshAuthentication(String)

SSH authentication error with detail.

ยง

ConnectionFailed(String)

TCP/SSH connection failed before authentication.

ยง

AuthenticationFailed

SSH authentication rejected by the server.

ยง

HostKeyChanged

Host key diverged from known_hosts (possible MITM).

Fields

ยงhost: String

Host name.

ยงport: u16

Port.

ยงexpected: String

Expected fingerprint.

ยงobtained: String

Observed fingerprint.

ยง

CommandTooLong

Command exceeds max_command_chars.

Fields

ยงmax: usize

Configured limit.

ยงlen: usize

Command length.

ยง

SudoDisabled

Elevation disabled (disable_sudo).

ยง

SuPasswordMissing

Missing su password for su-exec.

ยง

ChannelFailed(String)

Failed to open or operate an SSH channel.

ยง

SshTimeout(u64)

SSH operation timed out.

ยง

CommandFailed

Remote command exited non-zero.

Fields

ยงexit_code: i32

Remote process exit code.

ยงstderr: String

Truncated stderr snippet.

ยง

VpsNotFound(String)

VPS name not found in the registry.

ยง

NoActiveVps

No active VPS (active sibling file missing) โ€” GAP-SSH-EXIT-002.

ยง

VpsDuplicate(String)

Duplicate VPS name in the registry.

ยง

FileNotFound(String)

Local or remote file not found.

ยง

InvalidArgument(String)

Invalid CLI argument.

ยง

Timeout(u64)

Generic timeout.

ยง

XdgDirectory

XDG config directory unavailable.

ยง

SchemaIncompatible

Incompatible schema version.

Fields

ยงexpected: u32

Expected schema version.

ยงfound: u32

Found schema version.

ยง

Generic(String)

Uncategorized error.