Basic Security Quick Reference Guide
Step 1. Add New User
- Log in as root
- passwd
- adduser newuser
- passwd newuser
- gpasswd -a newuser wheel // Add newuser to wheel (superuser) group
Step 2. Edit SSHD Configuration File
- vi /etc/ssh/sshd_config // Edit Port Number, PermitRootLogin and UseDNS. Do Not Use Numeric Keypad !
Step 3. Edit SELinux to Accept New Port
- semanage port -a -t ssh_port_t -p tcp 45678 // Add port number to SELinux
- semanage port -l | grep ssh // Check port number has been added
- systemctl restart sshd.service // Restart SSHD service
Step 4. Test newuser Is Working Before Closing Original Connection
Step 5. Install Centos Web Panel (CWP)
- hostname srvr1.domain.com // Set up the required hostname on your server
- yum -y install wget
- yum -y update
- reboot
- cd /usr/local/src
- wget https://centos-webpanel.com/cwp-el7-latest
- sh cwp-el7-latest
- reboot