geth/crates/geth-ssh-proxy/src/lib.rs

22 lines
725 B
Rust
Raw Normal View History

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 {
2026-05-21 01:49:48 +02:00
"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"
2026-05-15 15:08:20 +02:00
}