Skip to content

Commit

Permalink
fix(ssh): force user for ssh commands (#949)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Jul 3, 2024
1 parent c375325 commit ba02a16
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 ba02a16

Please sign in to comment.