nikivdev/code · error
SSH command failed: {}
Error message
SSH command failed: {} What it means
Error "SSH command failed: {}" thrown in nikivdev/code.
Source
Thrown at src/deploy.rs:1852
/// Run SSH command with inherited stdio.
fn ssh_run(conn: &HostConnection, cmd: &str) -> Result<()> {
let status = Command::new("ssh")
.args([
"-p",
&conn.port.to_string(),
"-o",
"StrictHostKeyChecking=accept-new",
&conn.ssh_target(),
cmd,
])
.stdin(Stdio::inherit())
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.status()
.context("Failed to run SSH")?;
if !status.success() {
bail!("SSH command failed: {}", cmd);
}
Ok(())
}
/// Run SSH command and capture output.
fn ssh_capture(conn: &HostConnection, cmd: &str) -> Result<String> {
let output = Command::new("ssh")
.args([
"-p",
&conn.port.to_string(),
"-o",
"StrictHostKeyChecking=accept-new",
&conn.ssh_target(),
cmd,
])
.output()
.context("Failed to run SSH")?;
View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/deploy.rs:1852 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/78084e2253fe3950.
Report an issue: GitHub.