Warning: "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /home/curious/public_html/vqmod/vqmod.php on line 675
Basic Security Quick Reference Guide
The Curious Website Designer

Basic Security Quick Reference Guide

Step 1. Add New User 

  1. Log in as root
  2. passwd
  3. adduser newuser
  4. passwd newuser
  5. gpasswd -a newuser wheel   // Add newuser to wheel (superuser) group

 

Step 2. Edit SSHD Configuration File

  1. vi /etc/ssh/sshd_config  // Edit Port Number, PermitRootLogin and UseDNS. Do Not Use Numeric Keypad !

 

Step 3. Edit SELinux to Accept New Port

  1. semanage port -a -t ssh_port_t -p tcp 45678    // Add port number to SELinux
  2. semanage port -l | grep ssh            // Check port number has been added
  3. systemctl restart sshd.service          // Restart SSHD service

 

Step 4. Test newuser Is Working Before Closing Original Connection 

 

Step 5. Install Centos Web Panel (CWP)

  1. hostname srvr1.domain.com    // Set up the required hostname on your server
  2. yum -y install wget
  3. yum -y update
  4. reboot
  5. cd /usr/local/src
  6. wget https://centos-webpanel.com/cwp-el7-latest
  7. sh cwp-el7-latest
  8. reboot