After you have created a Key Pair and launched an instance, you can now connect to your new DreamCompute instance using this Key Pair. However, the default user does not have a password set. It only uses this Key Pair to log in.
After you've logged in, proceed with the following steps to create a password for the default user.
The following example is ran on an Ubuntu server with the default user named 'ubuntu'.
- Change to the root user
ubuntu@server:~$ sudo su root@server:/home/ubuntu#
- Create a new password for the default user:
root@server:/home/ubuntu# passwd ubuntu Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
- The default user now has a password. If you ever need to log into the server using this password, you must do it from within the DreamCompute dashboard.
How to log into your server via the DreamCompute dashboard console
- Log into the DreamCompute dashboard.
- On the left, click 'Instances'.
- Click the 'Console' tab.
- Enter the default username.
- Then enter the password you just created. This logs you into the server.