Secure an Ubuntu Linux Server Against Hackers Today!
Will you watch this tutorial to see how to secure an Ubuntu Linux server against attacks from hackers today because these simple steps can block most basic hacking attempts and provide peace of mind when running our servers? Skip around in this Ubuntu Linux 16.04 guide filmed in October 2017 by clicking on the time points below!
0:00 Introduction to Ubuntu Linux security for beginners and Information Technology students! Why take the 45 minutes to quickly secure our servers as soon as we get them? Amateur hackers can crack our default hosting provider settings fairly easily using programs downloaded from the Internet. We can block these hacks with just a few minutes of running the commands in the Command Line Interface I show here and signing in with RSA keys instead of passwords! Keep a window open in Ubuntu Linux with Putty to avoid locking ourselves out of the server!
8:28 Choosing a server host unless we prefer to build onto our own machine. For maximum reliability, renting from a data center is ideal. I show you the servers I use for greatest privacy in hosting.
11:09 Accessing the Ubuntu Linux server with putty and signing in to root or with a username for the first time.
14:07 How to download Putty for Windows.
15:27 Using a password manager LastPass to keep the root and username passwords.
18:10 Changing the password with passwd.
20:26 Adding a new user with adduser.
24:07 Signing in with the added user.
25:06 Usermod to give the user sudo or root privileges.
26:15 Verify sudo access on user.
27:25 Key basic Linux commands cd pwd and ls.
31:50 Updating with apt-get update
33:04 Installing nano text editor.
34:32 Updating sshd_config with nano to PermitRootLogin no.
43:30 Changing the SSH port from 22 to another number.
47:16 Setting up RSA login by generating keys with puttygen. This makes logins automatic and much more secure than using a password with public and private keys. WARNING: I locked myself out of my server after disabling password logins later and messing up my RSA public key file. Verify this works to log back in before logout.
58:01 Disabling password logins and ipv6 listening. Again, make sure logins work with RSA before doing this or the server will become inaccessible!
1:00:26 Learn from my mistakes! See my reaction to getting locked out of my server when the server refused our key!
1:02:33 One week later I have a fresh server install and do it all again in 45 minutes!
1:04:58 Installing fail2ban to block IPs from repeated failed logins.
1:11:31 Install UFW or Uniform Fire Wall to block some DDOS attacks and hacking attempts.
1:14:25 Get NTP to minimize block misses as a Steem witness and time sync issues with other servers!
1:19:33 Thank you very much for watching this complete Ubuntu Linux server security setup tutorial for beginners produced in October 2017 on Ubuntu Linux 16.04!
Would you read more about how I am using this server on my blog at https://steemit.com/@jerrybanfield because you will thank me later?
Love,
Jerry Banfield
linux server