22 lines
725 B
Rust
22 lines
725 B
Rust
use geth_types::{NodeId, ResourceId, UnixMillis};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct SshProxyTarget {
|
|
pub resource: ResourceId,
|
|
pub node: NodeId,
|
|
}
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct SshProxyConnection {
|
|
pub target_node: NodeId,
|
|
pub connected_at: UnixMillis,
|
|
pub local_sshd_target: Option<String>,
|
|
pub admin_shell_available: bool,
|
|
pub note: String,
|
|
}
|
|
|
|
#[must_use]
|
|
pub fn ssh_proxy_roadmap() -> &'static str {
|
|
"SSH proxy carries SSH protocol bytes over authorized Iroh streams, and the restricted geth admin shell uses built-in control commands; SSH is not a geth transport"
|
|
}
|