Skip to content

Commit

Permalink
cloudconfig: do not touch PasswordAuthentication
Browse files Browse the repository at this point in the history
We have some application where we set PasswordAuthentication to "yes" in
sshd_config. This has always worked, but for some reason cloud-init
recently started setting it back to "no".

Tell cloud-init to just not touch our config by setting ssh_pwauth to
unchanged.
  • Loading branch information
chrboe committed Jun 9, 2021
1 parent 582f3b2 commit dbb682e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/virter/cloudconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local-hostname: {{ .VMName }}

const templateUserData = `#cloud-config
disable_root: False
ssh_pwauth: unchanged
ssh_authorized_keys:
{{- range .SSHPublicKeys }}
- {{ . }}
Expand Down

0 comments on commit dbb682e

Please sign in to comment.