Use installed dosh-auth path for SSH bootstrap
ci / test (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
Codex
2026-06-11 09:03:20 -04:00
parent d58a4244af
commit babfb204c3
7 changed files with 18 additions and 8 deletions
+8 -3
View File
@@ -39,8 +39,8 @@ struct Args {
attach_only: bool,
#[arg(long)]
ssh_port: Option<u16>,
#[arg(long, default_value = "dosh-auth")]
ssh_auth_command: String,
#[arg(long)]
ssh_auth_command: Option<String>,
#[arg(long)]
ssh_key: Option<std::path::PathBuf>,
#[arg(long)]
@@ -81,6 +81,11 @@ async fn main() -> Result<()> {
}
.to_string();
let ssh_port = args.ssh_port.or(config.ssh_port);
let ssh_auth_command = args
.ssh_auth_command
.clone()
.or_else(|| config.ssh_auth_command.clone())
.unwrap_or_else(|| "~/.local/bin/dosh-auth".to_string());
let dosh_port = args.dosh_port.unwrap_or(config.dosh_port);
let cache_path = cache_path(&config.credential_cache, &server, &session, &mode);
let (cols, rows) = size().unwrap_or((80, 24));
@@ -164,7 +169,7 @@ async fn main() -> Result<()> {
let mut bootstrap = ssh_bootstrap(
&server,
ssh_port,
&args.ssh_auth_command,
&ssh_auth_command,
args.ssh_key.as_deref(),
args.ssh_known_hosts.as_deref(),
args.ssh_control_path.as_deref(),