I am provisioning a machine using packer
.
The tool offers shell provisioning functionality so I am able to run whatever shell commands I want.
I would like to disable ssh
password login.
Is there a way to do this via a command, rather than ending up writing pattern and line mathing sed
s for /etc/sshd_config
?