Prevent Hetzner from modifying the "sshd_config" file
This commit is contained in:
parent
870adf892a
commit
a7798a8760
7
packer/hetzner/seed/user-data
Normal file
7
packer/hetzner/seed/user-data
Normal 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
|
@ -9,6 +9,8 @@ source "hcloud" "main" {
|
||||
service = "wireguard"
|
||||
}
|
||||
|
||||
user_data_file = "./hetzner/seed/user-data"
|
||||
|
||||
ssh_port = "22"
|
||||
ssh_username = "root"
|
||||
ssh_timeout = "10m"
|
||||
|
Loading…
Reference in New Issue
Block a user