pub struct Host {Show 13 fields
pub name: String,
pub hostname: String,
pub user: String,
pub port: u16,
pub identity_file: Option<String>,
pub password: Option<String>,
pub proxy_jump: Option<String>,
pub tags: Vec<String>,
pub notes: Option<String>,
pub source: HostSource,
pub original_ssh_host: Option<String>,
pub key_setup_date: Option<String>,
pub password_auth_disabled: Option<bool>,
}Expand description
A single host entry used for SSH connections.
Populated either from ~/.ssh/config (via the parser) or from
~/.config/omnyssh/hosts.toml (manual entries added through the TUI).
Fields§
§name: StringDisplay name / alias (e.g. "web-prod-1").
hostname: StringHostname or IP address to connect to.
user: StringSSH user. Defaults to "root" when not specified.
port: u16SSH port. Defaults to 22 when not specified.
identity_file: Option<String>Path to the private key file (e.g. ~/.ssh/id_ed25519).
password: Option<String>Password for password-based authentication (not recommended, used for initial setup).
proxy_jump: Option<String>ProxyJump host alias (for bastion / jump-host setups).
Organisational tags (e.g. ["production", "web"]).
notes: Option<String>Free-text notes about this host.
source: HostSourceWhere this entry came from.
original_ssh_host: Option<String>Original host name from ~/.ssh/config if this host was renamed.
Used to prevent duplicate entries when a SSH-config host is renamed.
key_setup_date: Option<String>Date when SSH key was configured by OmnySSH (ISO 8601 format).
password_auth_disabled: Option<bool>Whether password authentication has been disabled on the server.