By arpitkshrma
Hey, as soon as I get my droplet created, can I change my root password? Dumb question, ahhh, but just by changing the root password of my OS installed in the droplet?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I must offer my suggestion to this with a tutorial.
<br>
<br>First of all, yes you can change the password, in fact it is quite simple.
<br>1. Login to your droplet as root
<br>2. type the command “passwd” (no quotes) and press enter
<br>3. Type in your new password - PLEASE I BEG YOU… use something with upper and lower case and a number or two and a symbol
<br>4. Confirm the password
<br>5. YOU ARE DONE!
<br>
<br>When it comes to using SSH Keys, I have issues with this, unless you know what you are doing, please don’t While it is more secure than a password, there are issues with it. If you need to have a developer help you with some things it is easier to give him access using a username/password with privileges that YOU choose. Also, if you are using the droplet for a day or 2, having SSH Keys is nice, but not a major thing.
<br>
<br>I hope that helps answer your question
<br>
<br>Ryan
Hello, all
If you have access to your droplet and you want to change the password, just make sure you’re logged as the root username and then type the following command:
passwd
You will then be prompted to enter the new password and then re-enter it again.
If you’re unable to access your droplet you can try to reset the root password and then check your email and access the droplet via the web console.
You can reset your root password your account. Navigate to the control panel. From the project the Droplet is in, or from the main navigation’s Droplets page, locate the Droplet. Click the Droplet’s name to open its detail page, then select Access in the left navigation.
Click Reset Root Password to reset the Droplet’s password. You will receive an email containing the Droplet’s temporary password.
Note: Some operating systems use internally-managed passwords, which means you cannot reset the root password from the control panel. In these cases, you’ll see the following message in the Reset root password section:
Once you have received your new password you can either ssh to the droplet using your ssh client or access the droplet using the DigitalOcean console:
https://www.digitalocean.com/docs/droplets/resources/console/
From the DigitalOcean Control Panel, first click the name of the Droplet you want to access, then select Access from the left navigation. Click the Launch Console button to open a web-based console session.
When the console opens, click the console screen and press ENTER to ensure that the login prompt has focus. At the login prompt, enter the user you want to log in as. This is typically the root user or a user configured with sudo privileges.
When prompted, enter the password associated with the account. For security purposes, your password will not be displayed on the screen as you type or paste it into the command line.
Once you’ve entered the password, press ENTER. If this is the first time you’ve logged in after resetting the root password through the control panel, you are prompted to enter the password again, then asked to choose a new password.
Once you’ve successfully entered your credentials you should be logged in to your Droplet.
Hope that helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.