Skip to content

Commit

Permalink
fix(ssh): force user for ssh commands
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry authored and AngelOnFira committed Jun 26, 2024
1 parent bd70e77 commit 06d4220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bolt/core/src/tasks/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ async fn ip_inner(
) -> Result<()> {
block_in_place(|| {
if let Some(command) = command {
cmd!("ssh", "-t", "-i", ssh_key.path(), ip, command).run()
cmd!("ssh", "-t", "-l", "root", "-i", ssh_key.path(), ip, command).run()
} else {
cmd!("ssh", "-t", "-i", ssh_key.path(), ip).run()
cmd!("ssh", "-t", "-l", "root", "-i", ssh_key.path(), ip).run()
}
})?;

Expand Down

0 comments on commit 06d4220

Please sign in to comment.