#!/bin/bash # NOTE: the file number needs to be **higher** than the one # cloud-init writes (cloud-init uses 50-cloud-init.conf) so # the cloud-init file takes precedence cat << EOF >> "/etc/ssh/sshd_config.d/60-cloudimg-settings.conf" PasswordAuthentication no EOF