Add SSH proxy authorization probe
This commit is contained in:
parent
f7e85960f7
commit
e145bb47cd
11 changed files with 333 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use geth_types::{NodeId, ResourceId};
|
||||
use geth_types::{NodeId, ResourceId, UnixMillis};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
|
|
@ -7,6 +7,15 @@ pub struct SshProxyTarget {
|
|||
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 {
|
||||
"future SSH proxy carries SSH protocol bytes over authorized Iroh streams; SSH is not a geth transport"
|
||||
|
|
|
|||
Loading…
Reference in a new issue