diff options
author | 2024-12-10 14:48:00 +0100 | |
---|---|---|
committer | 2024-12-10 14:48:00 +0100 | |
commit | 12b8cce60c3b094deed0780cb11f74a57e485ddf (patch) | |
tree | a161b5046b40a409c0ea9329732c3fc1024be46e | |
parent | f9321633e22e2d6317634af7e76bd0df1282a669 (diff) |
feat(infra): Fix AWS terraform
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: Ie903eb01ee7d014e3c6655e98f3d15ef9dd909f8
5 files changed, 5 insertions, 5 deletions
diff --git a/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf b/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf index f65366f670..bf27f038fd 100644 --- a/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf +++ b/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf @@ -101,7 +101,7 @@ variable "first_run_commands" { description = "List of private IPs to assign to the ENI without regard to order." type = list(string) default = [ - "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", + "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config", "sudo systemctl restart sshd", "sudo useradd --create-home -s /bin/bash provisionuser", "echo 'provisionuser:Csit1234' | sudo chpasswd", diff --git a/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf b/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf index b08495db2b..3b50b15934 100644 --- a/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf +++ b/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf @@ -101,7 +101,7 @@ variable "first_run_commands" { description = "List of private IPs to assign to the ENI without regard to order." type = list(string) default = [ - "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", + "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config", "sudo systemctl restart sshd", "sudo useradd --create-home -s /bin/bash provisionuser", "echo 'provisionuser:Csit1234' | sudo chpasswd", diff --git a/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf b/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf index 09794494e6..686614a116 100644 --- a/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf +++ b/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf @@ -149,7 +149,7 @@ variable "first_run_commands" { description = "List of private IPs to assign to the ENI without regard to order." type = list(string) default = [ - "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", + "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config", "sudo systemctl restart sshd", "sudo useradd --create-home -s /bin/bash provisionuser", "echo 'provisionuser:Csit1234' | sudo chpasswd", diff --git a/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf b/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf index f9c3a1579c..08c3d53465 100644 --- a/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf +++ b/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf @@ -161,7 +161,7 @@ variable "first_run_commands" { description = "List of private IPs to assign to the ENI without regard to order." type = list(string) default = [ - "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", + "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config", "sudo systemctl restart sshd", "sudo useradd --create-home -s /bin/bash provisionuser", "echo 'provisionuser:Csit1234' | sudo chpasswd", diff --git a/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf b/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf index b4c38affec..fcdac7d079 100644 --- a/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf +++ b/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf @@ -149,7 +149,7 @@ variable "first_run_commands" { description = "List of private IPs to assign to the ENI without regard to order." type = list(string) default = [ - "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", + "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config", "sudo systemctl restart sshd", "sudo useradd --create-home -s /bin/bash provisionuser", "echo 'provisionuser:Csit1234' | sudo chpasswd", |