Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11362

Enable SSH password authentication in cloned vSphere CentOS 7 VM

$
0
0

@lauracaruso2408 wrote:

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!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 11362

Trending Articles