![]() Since we want to use the VM as a remote desktop, we need a connection that supports graphics.īoth RDP and VNC are popular protocols for remote desktop access. I have the password stored in my Keepass password manager in case I forget it. ![]() This way, I do not have to store a hashed password, not in the Github code repository, or on my local computer. Sed -i -e "/password:/ $customDataScript.tmp ![]() HASHEDPW=$(mkpasswd $SECRET -method=SHA-512 -rounds=4096)Ĭp $customDataScript $customDataScript.tmp Read -sp 'Enter password for Cloud-config: ' SECRET This config file is then used to set the password on the VM upon creation, after which the copy of the config file containing the hashed password is deleted.Įcho "generate cloud-config with encrypted password. In the end, I figured out a way to accomplish this using a shell script with an interactive prompt, that dynamically inserts the hashed password into the Cloud-init config file. Since we want a fully scripted process of VM creation, I needed a secure way to generate and set a password during VM creation. ![]() Last login: Sun Jan 14 22:02:30 2024 from password generation for RDP accessįor remote desktop access with sufficient performance (no lags) we still need to set a password on the VM when we create it. Statistical computing on a shoestring: Stan in the Azure cloud using Cloud-init | R-bloggers > ~/.ssh/known_hostsĪfter all this, we can connect to the VM using SSH without the need to supply a password, the key-pairs in the background take care of the authentication process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |