Initial Server Setup #Ubuntu 20.04 LTS and Install Cyberpanel
Post : https://bizanosa.com/ubuntu-20-initial-server-setup/
What we’ll do in this Ubuntu 20 Initial #Server #setup
This initial Server setup for Ubuntu 20 will cover the following:
Deploy your server on your VPS platform.
How to log into your Server using putty.
Create a new sudo user.
Setup a firewall
Setup SSH Key authentication for Ubuntu 20
Disable Root user login
Add Swap File
1. Deploy Server
This part depends on your VPS provider. For this Ubuntu 20 initial server setup, I will use Vultr. Signup on Vultr and get $100 credit in your new account.
Deploy your server and then follow along with the next steps.
2. Log into your Linux server using putty
Download and install putty from the official putty website. Install one of the Package files with all Putty utilities (often listed at the very top) .
If you are following along on a Mac or Linux, this is how to log in via terminal.
To log in, you will need your IP address, user and password. All these details are available in your Admin dashboard.
The following part about logging in via Putty is taken from this previous Centos 7 server setup post.
Now we can go ahead and log in. To login you will need:
Putty – Already installed.
Username – Username for the new Ubuntu 20 server is root.
Password – Copy it from your Admin dashboard .
IP address – Copy it from your Admin dashboard or the email sent to you after the server was created.
Open Putty . If you are on Windows 8 and above, just search ( Windows Key + W) for Putty and open it.
Then Add your IP address under Hostname (or IP ).
Save the session so that you don’t have to type your IP every time. To do that, give the session a name under saved sessions.
Then click save. To save the session.
Do all the above as marked in the screenshot below.
Using putty to ssh into server
Now every time you want to login you will just double click on the session you stored. Then put in your username and password on the putty command window.
Double click on your newly stored session now. A prompt will appear as shown below. Click yes.
Putty prompt on first log in
Then enter username of root. (Login as : root)
Then copy your password from your dashboard. Then right click once to paste it into Putty. While inputting the password, you will not see any output. Just press enter to log in.
Tip: To paste anything into putty, just right click once.
Congratulations you are now logged into your server and we can begin setting things up.
Now logged into server via putty
3. Create a new sudo user.
The default admin user in your new server is root. The root user is available on every linux system, so everybody knows about it.
For security reasons we will create a new user and give them sudo / admin privileges. Later on, we’ll disable the root login so that no one can log in as root on this Ubuntu 20 server.
Step 1 : Create the new user . Give them a unique secure name.
adduser n3wus3r19
Step 2: Add the user above to the sudo group. Users with sudo privileges can execute root level commands. To do so you must add sudo before every command. Add the user to the sudo group as follows ;
usermod -aG sudo n3wus3r19
If you experience an error whereby sudo is not recognized, install it as follows.
First update the server:
apt update && apt upgrade
Then install sudo
apt install sudo
After installing sudo, restart your server. You can do this via the admin dashboard of your VPS provider or by running :
shutdown -r
or
reboot
Step 3 : Try logging in and running a sudo command.
Log out of your server and try logging in with the new user. Remember to restart your server if you had to install sudo.
Once you log in, try running the following command. Enter the user password when prompted.
sudo apt update
If it runs the sudo command without any issue, you can continue using the new user to set up your server. You will be asked to enter your user password when using sudo or once sessions expire.
Just remember to add sudo before every command, or else you will receive permission denied errors.
.
If this video was helpful to you, please consider supporting my channel : https://paypal.me/rwahowa
.
GET SOCIAL WITH ME:
FACEBOOK: https://www.facebook.com/rwahowa/
INSTAGRAM: https://www.instagram.com/rwahowa/
TWITTER: https://twitter.com/rwahowa/
VIMEO: https://vimeo.com/bizanosa/
WEBSITE : http://rwahowa.com
source