2026-05-19 15:51:11 +02:00
|
|
|
use geth_types::{NodeId, ResourceId, UnixMillis};
|
2026-05-15 15:08:20 +02:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
|
|
|
pub struct SshProxyTarget {
|
|
|
|
|
pub resource: ResourceId,
|
|
|
|
|
pub node: NodeId,
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-19 15:51:11 +02:00
|
|
|
#[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,
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-15 15:08:20 +02:00
|
|
|
#[must_use]
|
|
|
|
|
pub fn ssh_proxy_roadmap() -> &'static str {
|
|
|
|
|
"future SSH proxy carries SSH protocol bytes over authorized Iroh streams; SSH is not a geth transport"
|
|
|
|
|
}
|