Overview
You can set a password for the default user on a DreamCompute instance once you've created a Key Pair, launched an instance, and connected to your new DreamCompute instance using this Key Pair. By default, the default user has no password set — it only uses this Key Pair to log in.
After you've logged in, use the following steps to create a password for the default user.
The following example is run on an Ubuntu instance with the default user named 'ubuntu'.
How do I set the password for the default user?
- Change to the root user
ubuntu@instance:~$ sudo su root@instance:/home/ubuntu#
- Create a new password for the default user:
root@instance:/home/ubuntu# passwd ubuntu Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
The default user now has a password. - Log into the instance using this password. Going forward, you must use the DreamCompute dashboard to log into this instance with the new password.
How do I log into my instance via the DreamCompute dashboard console?
- Log into the DreamCompute dashboard.
- On the left, click Instances, then click the instance name you want to log in to.
- Click the Console tab.
- Enter the default username.
- Enter the password you just created. This logs you into the instance.