SSH and users – Beginners guide to Digital Ocean

Ernest Marcinko Hosting, Tutorials Leave a Comment

After successfully creating your droplet, you should receive an email from digital ocean with your root credentials. Something like:

Now you have your root access to your server. Using however this root access all the time is not safe, so the first thing we are going to do is create another user. For that we need a terminal program, or you can use the web interface as well – by clicking on your droplet on the droplets list.

Setting Up Putty

After downloading putty you can immediately start it.

Paste your server IP address to the Host Name field. Save this configuration for faster access later.

After inputting your server IP address you can hit the Open button to open the SSH connection. If the IP address is correct, then you should see your server login screen.


Type in “root” for the username and the password (from the email). After successful login you should be greeted with a similar message.


Success. You are now logged in. Take a look at the terminal screen. It currently says that you can already access your web server in your browser with it's IP address. It also outputs your MySQL root password. Note that password temporary, you will need it later.

Adding a new user

Using the root user is not secure whatsoever, so it's recommended to create another user account and use that instead. Why? Mostly because the root user has all the administrative privileges, and you don't want to accidentally destroy anything.

With the adduser command we can create another user, in this example I will use “demo”.

adduser demo

After hitting enter you will be asked to create a password, etc..
Great work so far. Now we need to ensure that this user will be capable of running administrative commands sometimes. For this we need to give him root privileges with the following command:

gpasswd -a demo sudo

This ensures that the demo user will be capable of using the sudo command. Some tasks require root privileges, this shall be run with the sudo command.

You can close your terminal now and log in with the newly created demo user.

For more in depth tutorial you should check out this digital ocean's initial server setup tutorial.


<< Chapter #2      Chapter #4 >>

Ernest Marcinko

WordPress developer, javascript enthusiast, photoshop clicker and the founder of

Stay connected

Related Posts
Filter by
Post Page
Tutorials Wordpress Hosting Blog Commercial Plugins Wordpress Developer Notes
Sort by

Saving space automatically – Beginners guide to Digital Ocean

After a while, you will notice an exponential growth of used space, without even copying anything to it. How
2016-05-06 09:24:05


Swap file – Beginners guide to Digital Ocean

If you reached this step, your server is up and running flawlessly. However after gaining some traffic it will run out
2015-01-21 15:48:02


Mailing – Beginners guide to Digital Ocean

Sending mails properly is probably the hardest task to achieve with Digital Ocean. I will present two ways of doing
2015-01-20 21:38:53


FTP & SFTP – Beginners guide to Digital Ocean

So far we have a running web server with a working database, but we don't have FTP access. SFTP However
2015-01-16 17:08:19


Virtual Hosts - Beginners guide to Digital Ocean

By now we have a working private server with very basic features and a demo user. By default your website is data is
2015-01-15 19:23:28


Leave a Reply

Your email address will not be published. Required fields are marked *