Is it necessary to prohibit root access on a vps?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
60 views
Hello. First time setting up vps hosting. Read the article, but many of them are to each other contradict.
Interested in date, for the 2018 approaches. So, a beginner I have the following questions:
  1. Do I need to create a ban on the username root? (the server administrator will be the only one)
  2. Important to install denyhosts? Or is there another, more relevant?
  3. How to install a firewall?
  4. What should be standard actions, in addition to the updates, when you create a configuration web hosting?


Config like this: host ovh, debian 8, drupal 7, php 7, apache2, mysql 5
by | 60 views

4 Answers

0 like 0 dislike
In Your place, I would set up for a Drupal website with Nginx + php-fpm, not Apache
Login as root, you can prevent that by creating a user and adding it to the group of sudoers.
by
0 like 0 dislike
Sudo can just as screwed up as root.
by
0 like 0 dislike
1. Ruth disable, create your user and throw in the sudo group, to disable the password prompt, sudo, and creating a more complex password for your user
2. Generate your ssh-key to log into the server on it
3. For firewall you can recommend for the UFW, so it is easy and fits your objectives
4. As already said, Twelfth Doctor - get rid of apache, instead take a bunch of Nginx + php-fpm
5. I would would recommend is to enable a swap
by
0 like 0 dislike
As without root. You only need a remote login as root to ban and fail2ban to put behind a firewall (ufw?).
Well, immediately in the path under the lxd package for mobility.
by

Related questions

0 like 0 dislike
4 answers
asked Mar 28, 2019 by propovednik
0 like 0 dislike
3 answers
0 like 0 dislike
4 answers
110,608 questions
257,187 answers
0 comments
40,796 users