1. Home
  2. Cloud
  3. How to set up your CentOS 7 server

How to set up your CentOS 7 server

After provisioning your janeCloud server running CentOS 7, 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 details

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 CentOS 7 server you have provisioned.


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

3. Click Manage next to the CentOS 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 -l 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.

Set a new password for janedoe

passwd janedoe

At the prompt, reenter the new password and confirm by pressing Enter

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 wheel group which can use sudo commands:

gpasswd -a janedoe wheel

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 your new janedoe user

ssh -1 janedoe Your_Server's_IP

Login should be successful. Close all other open terminals.

Secure your janeCloud server by disabling root user login

You need to edit the SSH daemon configuration to prevent anyone logging into your janeCloud using the root or password authentication.

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

sudo nano /etc/ssh/sshd_config

Find PermitRootLogin, it will look like this:

PermitRootLogin yes

Set it to no using your cursor

PermitRootLogin no

Check that PasswordAuthentication in the same SSH daemon file is also set to no

PasswordAuthentication 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

Change GMT/UTC time on your janeCloud

You’ll want to change the local time zone on your janeCloud to wherever you are by editing the /usr/share/zoneinfo directory.

Pull up a list of your janeCloud’s timezones by running:

ls -R /usr/share/zoneinfo

You’ll see an output, such as:


Use sudo command to change your timezone:

sudo ln -sf /usr/share/zoneinfo/Time/Zone /etc/localtime

Replace /Time/Zone with your actual location’s timezone, e.g. /US/Arizona

sudo ln -sf /usr/share/zoneinfo/US/Arizona /etc/localtime

Now run the date command to test that your janeCloud’s timezone is updated.


If you were in Arizona (GMT -7), you should get something along the lines:

Sat Jul 21 05:21:58 MST 2018

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

Updated on October 24, 2018

Was this article helpful?