MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / exec_ssh_client_config

Function exec_ssh_client_config

crates/openshell-server/src/grpc/sandbox.rs:1498–1504  ·  view source on GitHub ↗

russh client config for exec relays.

()

Source from the content-addressed store, hash-verified

1496
1497/// russh client config for exec relays.
1498fn exec_ssh_client_config() -> russh::client::Config {
1499 russh::client::Config {
1500 keepalive_interval: Some(EXEC_KEEPALIVE_INTERVAL),
1501 keepalive_max: EXEC_KEEPALIVE_MAX,
1502 ..Default::default()
1503 }
1504}
1505
1506/// Treat channel EOF before an exit status as relay failure, not exit code 1.
1507fn exec_loop_result(exit_code: Option<i32>) -> Result<i32, Status> {

Callers 2

run_exec_with_russhFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected