How to secure your Linux Server

meetdilip

Member
Registered
Joined
Apr 19, 2016
Messages
36
Points
0
Security.jpg


Running a website is easy when your host does everything for you. In such cases, your only worry is to make your website / service profitable. But as you get into unmanaged servers, you will have to deal with the extra burden of setting up your hosting. This include installing various modules for proper working of your web service, adding components to maintain your hosting set up and using tools to take back ups and logging.

Everything seems simple when you refer to guides available on internet and go ahead adding features and modules to your hosting set up. But the problem is there are a lot of trouble makers available on internet arena. They hack / disrupt service just to prove a point, make money or just for fun. Securing your server is the most important aspect of managing your server. Of course you can give it all to the hosting staff. But a managed server does not comes cheap. It will dig a big hole in yor pocket.

The basic idea of securing your server involves installing a firewall to secure unused ports available. There are few reliable options in case of firewalls namely IPTables, Uncomplicated Firewall ( UFW ), NFTables, IP6Tables etc. It is always advisable to use tried and tested methods to secure your firewall.

Another mode of securing is by using a strong password for your SSH logins. An alternative method is to use a SSH-Key to add improved security while using SSH. This has to be dealt in two parts, a public key and a private key. The public key is added to the server and it allows access only after verifying your private key.

Also, make use of services like fail2ban to ban malicious IP s which try to harm through continuos failed logins and similar malicious practices.

Do you think you can manage your hosting on your own ?
 

Steve32

Premium Member
Premium
Registered
Joined
Mar 15, 2014
Messages
111
Points
18
Do you think you can manage your hosting on your own ?
I am learning web hosting and its helping me to manage my own VPS but it's hard to control a VPS like an hosting expert.
For securing a linux server, in my personal opinion, it depends on the level of each sysadmin who controlling their hosting server. There are many aspects can affect to the security of a server, all you need it a good hosting control and right configs for your hosting.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
There are good practices to use :
- change SSH port
- use SSH keys to login
- Install fail2ban
- Install a firewall
- Use cloudflare
- keep server updated
 

wlraider81

Member
Registered
Joined
Aug 15, 2016
Messages
22
Points
3
wlraider81
Can I install both fail2ban and ConfigServer Security Firewall on a same VPS?
How to use SSH keys to login on my VPS? I often login with root account and only see this option for the first time when I logged into my VPS.
 
Older Threads
Newer Threads
Replies
4
Views
2,548
Replies
0
Views
1,821
Replies
5
Views
4,471
Replies
3
Views
2,508
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top