feat(ssh): support OpenSSH ProxyCommand for tunnel hosts
This commit is contained in:
29 files changed
+413
-10
No files matched your search
@@ -1116,6 +1116,7 @@ mod tests {
|
||||
ssh_agent_sock_path: String::new(),
|
||||
auth_method: "key".to_string(),
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: String::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3490,6 +3490,7 @@ impl AppState {
|
||||
1,
|
||||
false,
|
||||
leaf.allow_exec_channel_proxy,
|
||||
&leaf.proxy_command,
|
||||
)
|
||||
.await
|
||||
.map(|_| ())
|
||||
@@ -8536,6 +8537,7 @@ mod tests {
|
||||
ssh_agent_sock_path: String::new(),
|
||||
auth_method: "password".to_string(),
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: String::new(),
|
||||
profile_id: String::new(),
|
||||
});
|
||||
assert!(state.test_tunnel_profile(&ssh).await.is_err());
|
||||
@@ -11216,6 +11218,7 @@ for line in sys.stdin:
|
||||
ssh_agent_sock_path: String::new(),
|
||||
auth_method: String::new(),
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: String::new(),
|
||||
profile_id: profile_id.to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3810,6 +3810,7 @@ mod tests {
|
||||
ssh_agent_sock_path: String::new(),
|
||||
auth_method: "password".to_string(),
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: String::new(),
|
||||
}),
|
||||
TransportLayerConfig::HttpTunnel(crate::models::connection::HttpTunnelConfig {
|
||||
profile_id: String::new(),
|
||||
@@ -5418,6 +5419,7 @@ mod tests {
|
||||
ssh_agent_sock_path: String::new(),
|
||||
auth_method: "password".to_string(),
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: String::new(),
|
||||
profile_id: String::new(),
|
||||
});
|
||||
storage.save_tunnel_profiles(std::slice::from_ref(&profile)).await.unwrap();
|
||||
|
||||
@@ -10585,6 +10585,7 @@ mod tests {
|
||||
ssh_agent_sock_path: String::new(),
|
||||
auth_method: "password".to_string(),
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: String::new(),
|
||||
profile_id: String::new(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user