1. Home
  2. Cloud
  3. How to set up your Ubuntu 16.04 server

How to set up your Ubuntu 16.04 server

After provisioning your janeCloud server running Ubuntu 16.04 x64, we recommend several steps to customize your new cloud server before you start using it or installing any software layer onto the new environment. This will help protect your server and increase it’s effectiveness for multiple purposes.

Get your cloud server’s IP and login credentials

1. After successful payment is approved, your server will be set up within 2 minutes.

2. Login to My HostJane. In the Dashboard under Services, look for the Ubuntu server you have provisioned.


If you cannot see the Ubuntu server or the cloud server is not active, please open a ticket.

3. Click Manage next to the Ubuntu server item. You will be transferred to the server’s dashboard.


Identifying your root password

4. Go to the Statistics area to find your cloud server’s IP address and password.

Sample screenshot of the Cloud Information.


The Main IP is your janeCloud’s IP address.

The Default Password is the root password.

5. Use the information from Statistics to login either with PuTTY on Windows or an OpenSSH client in linux and MacOS devices:

ssh root [Your_Server's_IP]

Replace Your_Server’s_IP with the janeCloud IP address given in Statistics.

Create a new user

For security reasons it’s best not to use the root user for everyday administrative tasks. The solution is to create a new user.

Type the following on the command line:

adduser janedoe

Replace janedoe with the unique name of your new user.

You will be automatically asked to set a new password for janedoe, and to reenter the password to confirm.

Press Enter to proceed with default information, otherwise enter values for your:

  1. Full name
  2. Room number
  3. Work phone
  4. Home phone
  5. Other

So that we don’t have to keep logging in and out between the new user and root accounts, we can add super-user privileges to the new user account.

Give janedoe super-user privileges by adding her to the sudo group:

usermod -aG sudo janedoe

Your new user can now have root privileges using sudo commands.

We recommend setting up public SSH keys to secure your server.

Steps for how to generate and set up SSH key pairs are beyond the scope of this guide.

After you’ve set up your SSH keys, open another terminal on your local machine and add your SSH key to janedoe‘s home directory.

ssh-copy-id janedoe@Your_Server's_IP

With the SSH key now installed, log back into your janeCloud server using the root user

Switch to janedoe to enter her home directory

su - janedoe

Create a new directory .ssh and restrict permissions:

mkdir ~/.ssh

Ensure there are no spaces between / and .ssh

chmod 700 ~/.ssh

Use nano, the command-line text editor, to edit the authorized_keys file in .ssh directory by typing:

chmod 600 ~/.ssh/authorized_keys

Type exit to switch back to the root user.

Verify the configuration

Check that janedoe can successfully log into her janeCloud using SSH.


SSH janedoe@[Your_Server's_IP]

If successful, you will login to your janeCloud using your private key, and will not be asked for a password.

Secure your janeCloud server by disabling root password authentication

Only disable password authentication if you have set up SSH keys on the server, otherwise you’ll be locked out.

Edit the SSH daemon file to prevent unauthorized users logging into your janeCloud using password authentication.

Use nano, the command-line text editor, to open the SSH daemon file (after logging in with your SSH new super-user, janedoe) by typing:

sudo nano /etc/ssh/sshd_config

Find PasswordAuthentication, it will look like this:

PasswordAuthentication yes

Set it to no using your cursor

PasswordAuthentication no

Check that PubkeyAuthentication and ChallengeResponseAuthentication in the same SSH daemon file are set to no

PubkeyAuthentication yes
ChallengeResponseAuthentication no

Press ctrl + O then Enter to write the changes to SSH daemon

Now close the file with ctrl + x

Reload SSH

To save the changes, restart the SSH service:

sudo systemctl reload sshd

You are now ready to start using your new Ubuntu janeCloud server and begin installing any software.

Updated on October 24, 2018

Was this article helpful?