From 0d96b7741f3d89d8b2b3d90190b83ab43c1a3c84 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 2 Aug 2025 21:16:01 +0200 Subject: [PATCH] fix: Add github user to allowed SSH users --- .../modules/docker-network/templates/scripts/ssh-setup.sh.tftpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/docker-network/templates/scripts/ssh-setup.sh.tftpl b/terraform/modules/docker-network/templates/scripts/ssh-setup.sh.tftpl index cf3c8d8..372b366 100644 --- a/terraform/modules/docker-network/templates/scripts/ssh-setup.sh.tftpl +++ b/terraform/modules/docker-network/templates/scripts/ssh-setup.sh.tftpl @@ -7,4 +7,4 @@ sed -i -e '/^\(#\|\)MaxAuthTries/s/^.*$/MaxAuthTries 2/' /etc/ssh/sshd_config sed -i -e '/^\(#\|\)AllowTcpForwarding/s/^.*$/AllowTcpForwarding no/' /etc/ssh/sshd_config sed -i -e '/^\(#\|\)AllowAgentForwarding/s/^.*$/AllowAgentForwarding no/' /etc/ssh/sshd_config sed -i -e '/^\(#\|\)AuthorizedKeysFile/s/^.*$/AuthorizedKeysFile .ssh\/authorized_keys/' /etc/ssh/sshd_config -sed -i '$a AllowUsers ${admin_user} terraform' /etc/ssh/sshd_config \ No newline at end of file +sed -i '$a AllowUsers ${admin_user} terraform github' /etc/ssh/sshd_config \ No newline at end of file