It would seem cloud-init doesn't like the "=" in "PermitRootLogin=no" in /etc/ssh/sshd_config. Also, something, I assume cloud-init, is removing the last <LF> from /etc/ssh/sshd_config.
If I change the /etc/ssh/sshd_config line I added from:
PermitRootLogin=no
to:
PermitRootLogin no
it no longer fails. Sshd does not complain about the "=".
It would seem cloud-init can't deal with "=" as var/val assignments in /etc/ssh/sshd_config and it's erroneously removing the last <LF> from the file (/etc/ssh/sshd_config).
This is strictly a guess based upon the behavior observed through trial and error, I have not examined the source code.
It would seem cloud-init doesn't like the "=" in "PermitRootLogi n=no" in /etc/ssh/ sshd_config. Also, something, I assume cloud-init, is removing the last <LF> from /etc/ssh/ sshd_config.
If I change the /etc/ssh/ sshd_config line I added from:
PermitRootLogin=no
to:
PermitRootLogin no
it no longer fails. Sshd does not complain about the "=".
It would seem cloud-init can't deal with "=" as var/val assignments in /etc/ssh/ sshd_config and it's erroneously removing the last <LF> from the file (/etc/ssh/ sshd_config) .
This is strictly a guess based upon the behavior observed through trial and error, I have not examined the source code.