fbpx

CyberPanel

2 – Secure SSH

< All Topics

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

 

secure ssh cyberpanel

 

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:

 

sshkeys cyberpanel

 

Now on your local machine you can login without needing a root password using:

ssh -i ~/.ssh/cyberpanel.pub root@<IP Address>
Previous 1 – Firewall
Next Two Factor Authentication in CyberPanel
Table of Contents