remove root from ssh_args...

because scp does not take the username via -l, so we just re-add
it to the commands themselves.
This commit is contained in:
phaer
2022-02-07 13:19:06 +01:00
parent a5914f81e6
commit 1a50ace0d3
4 changed files with 8 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ locals {
ssh_identity_file = var.private_key == null ? var.public_key : var.private_key
# shared flags for ssh to ignore host keys, to use root and our ssh identity file for all connections during provisioning.
ssh_args = "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root -i ${local.ssh_identity_file}"
ssh_args = "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${local.ssh_identity_file}"
MicroOS_install_commands = [
"set -ex",