Enable SSH password authentication in cloned vSphere CentOS 7 VM

Hello,

I need help for this: the VM cloned from a vSphere CentOS template does not come with the SSH password authentication enabled, so that I can not SSH to the machine for configuration.

I already edited /etc/ssh/sshd_config in the Template using

sed -i "s/Password Authentication no/PasswordAuthentication yes/g"

so the conf file should be fine.

The problem is that no change is applied to the conf file of the cloned machine. If I have a look at the conf file, the PasswordAuthentication field is still mysteriously set to no.

This really impacts my automation worflow, what am I doing wrong? Am I missing something?

Thank you in advance!