Skip to content

Commit

Permalink
Ubuntu 24.04 SSH configuration for AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOne91 committed Feb 28, 2025
1 parent c704926 commit f496534
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend_modules/aws/host/user_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,10 @@ apt:
runcmd:
# WORKAROUND: cloud-init in Ubuntu 24.04 does not take care of the following
- echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
# WORKAROUND: something in terraform is still using ssh-rsa
- echo "PubkeyAcceptedKeyTypes=+ssh-rsa" >> /etc/ssh/sshd_config
- echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config
- echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config
# WORKAROUND: something in terraform is still using ssh-rsa
- echo "PubkeyAcceptedAlgorithms=+ssh-rsa" >> /etc/ssh/sshd_config
# WORKAROUND: disable IPv6 until we have it in Provo
- echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99force-ipv4
- systemctl restart sshd
Expand Down

0 comments on commit f496534

Please sign in to comment.