You can set a default password during instance creation using a cloud-init configuration script.
In the Create Instance dialog, go to the Config & Password tab.Â
There are two options:
Set a password for the instance consoleÂ
This will set a non-expiring password for the default user, for instance console access only. Password login via SSH will remain disabled.
This script works across most cloud-init compatible Linux distributions.
#cloud-config
password: ""Â Â Â Â Â Â Â Â # Add your password between the quotes
ssh_pwauth: false
chpasswd:
expire: false Â
Password recommendations:
- Minimum 12 characters
- At least 1 uppercase letter (not first or last)
- At least 1 number
- Can’t end in a number or special character
Some Linux distributions may reject weak or non-compliant passwords.
Note: It is your responsibility to save your password securely. It will not be stored in your cloud project. Xneelo cannot view or recover this operating-system password. Store it securely if you set one.Â