0

in my product, i need to enable root user by default in autoinstall user-data file

Expectation: root user login by default post installation

i followed the below,

version: 1
user-data:
    disable_root: false
identity:
    hostname: hostname
    username: root
    password: $6$AYtLXyyVZAea2aLJ$UQxW1cz2vWWNn.17.3QYH5TxZqIMGoLJCpqbBTfClhUKxqouYn7/Yc5Jsq.bCeK0VDLPxbL6xzfJ0xqTb6MLk.

Do we need to edit target /etc/ssh/sshd_config and add PermitRootLogin to yes?

Any other method it will be helpful

0 Answers0