Got a new Ubuntu VPS? That’s great. You can now start using it and experience all the advantages of a Linux VPS. If you moved from shared hosting to a VPS, even better, you can now directly compare your experience with shared hosting and VPS hosting. This guide will help you get started with your Ubuntu 16.04 VPS.

This guide is targeted towards beginners, although other intermediate users can still use it and find useful tips and tricks for their server. We’ve included instructions and linked to our tutorials for each step you need to take, but they still may vary depending on your setup. If you don’t know what you are doing and just want to use a server, get a Managed VPS from us and leave the server work to us. We’ll set up, configure and secure your server for free.

Connect to your VPS

This may seem obvious, but before you can do anything, you must connect to your VPS. There are different ways of logging into your VPS, depending on which OS you use. You can check our post and follow the instructions for your OS, be it Windows, Mac, or Linux.

Update your server

First thing you always need to do – update your server. You can update your Ubuntu VPS with the following command:

apt-get update && apt-get upgrade -y

This command will update all your system’s packages to their latest version. You should regularly update your VPS. You can set a reminder to do it, or you can set up automatic updates.

Secure your server

Don’t start doing anything until you properly configure and secure your server. We can’t stress properly enough. If you’re a beginner and don’t know much about Ubuntu servers or security, get a Managed Ubuntu VPS from us and our expert Linux admins will properly secure your server.

Enable 2FA

Two-Factor Authentication essentially means you’ll need a code that’s sent to your phone in order to log in to your VPS. You can follow our tutorial and set up 2FA on your Ubuntu 16.04 VPS. Enabling 2FA will prevent other unauthorized users from logging into your server.

Use SSH keys

Another way of securing your server by preventing unwanted access is to use SSH keys. This will prevent anyone from logging into your server without a unique combination of a private and public key, which you must add to your server.

Use a strong password

Everywhere. Not just your server. Use a strong password in the client area, use a strong password in your CMS, use a strong password in your database. You can generate a password from the command line too. It is recommended that you use different passwords for each login/service.

The combination of a strong password along with SSH keys and 2FA ensures maximum security when it comes to unauthorized access to your VPS.

continue here

(Thought this can be useful there, for somebody who knows.. after all it's placed under DIY so it'll serve as an alternative reminder. )

Last update on July 25, 5:17 pm by Admin.