fbpx

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.


Basic Security

Server > Security > Secure SSH

 

 

On this page you can control two settings:

  • Change Default SSH Port.
  • Allow/Disallow Root Login.

SSH Keys

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 cyberpanel and cyberpanel.pub.

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 root@<IP Address>

CyberPanel follows deny all rules except for the ports opened by default, you can see default opened ports at: Server > Security > Firewall


Available Functions


Add Firewall Rule

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.

 

 

  1. Give this rule a name.
  2. Select protocol from dropdown either tcp or udp.
  3. Enter which port to open for specified protocol.
  4. Click 'ADD'.

This will add rule and reload firewall.


Delete Firewall Rule

Just click on the cross on right side of the rule, this will delete the rule and reload firewall.

chevron-down