Prevent Hetzner from modifying the "sshd_config" file

This commit is contained in:
Héctor Molinero Fernández 2020-02-06 20:21:10 +01:00
parent 870adf892a
commit a7798a8760
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#cloud-config
ssh_pwauth: false
disable_root: false
runcmd:
- sed -i '/ssh_pwauth/d' /etc/cloud/cloud.cfg.d/*-hetznercloud.cfg

View File

@ -9,6 +9,8 @@ source "hcloud" "main" {
service = "wireguard" service = "wireguard"
} }
user_data_file = "./hetzner/seed/user-data"
ssh_port = "22" ssh_port = "22"
ssh_username = "root" ssh_username = "root"
ssh_timeout = "10m" ssh_timeout = "10m"