Created
September 17, 2025 06:54
-
-
Save muhamad-ridwant-tech/dcd4898deab916b61a252d622fd27a8f to your computer and use it in GitHub Desktop.
reset root password & allow user root ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| chpasswd: | |
| list: | | |
| root:ridwan | |
| expire: false | |
| ssh_pwauth: true | |
| runcmd: | |
| - sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config | |
| - systemctl restart sshd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment