Securing SSH is one of the most important task of a system administrator. CyberPanel allows you to change SSH port, disable root login and save your SSH keys.
Server > Security > Secure SSH
On this page you can control two settings:
To add your SSH keys, you first need to generate a pair of a public/private key.
On your local machine
cd ~/.ssh ssh-keygen -t rsa -f cyberpanel -C root
This will generate two files
You need to copy contents of
cyberpanel.pub and paste in the following box:
Now on your local machine you can login without needing a root password using:
ssh -i ~/.ssh/cyberpanel.pub [email protected]<IP Address>
CyberPanel follows deny all rules except for the ports opened by default, you can see default opened ports at: Server > Security > Firewall
As I've mentioned above, CyberPanel follows deny all rules, so if you want to allow any port you can add from Server > Security > Firewall.
This will add rule and reload firewall.
Just click on the cross on right side of the rule, this will delete the rule and reload firewall.