1. First I created a new user and added it to the wheel group
2. I disabled SSH access for the root user by editing /etc/ssh/sshd_config and set PermitRootLogin no, then I restarted SSH service.
3. Then I tried to log into the WHM panel using root user, it failed, then tried with the user added to the wheel group, it also failed.
4. Then I revert the configuration through the user using the terminal and now everything is back to normal.
But my question is, is there a way to block root SSH access and then log into WHM panel?
Also I need to know by disabling root SSH access, will it affect functionality of Cpanel/WHM?
2. I disabled SSH access for the root user by editing /etc/ssh/sshd_config and set PermitRootLogin no, then I restarted SSH service.
3. Then I tried to log into the WHM panel using root user, it failed, then tried with the user added to the wheel group, it also failed.
4. Then I revert the configuration through the user using the terminal and now everything is back to normal.
But my question is, is there a way to block root SSH access and then log into WHM panel?
Also I need to know by disabling root SSH access, will it affect functionality of Cpanel/WHM?