fbpx

Secure SSH

Secure SSH

How to Secure SSH 

 

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 SSH Secure 

 

Go to Security > Secure SSH

 

 

On this page you can control two settings:

 

  1. Change Default SSH Port.
  2. 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

 

  1. cd ~/.ssh
  2. 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 

Go to SSH key section click on “Add key” and paste the cyberpanel.pub content in the following box:

 

 

 

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

  1. ssh -i ~/.ssh/cyberpanel.pub [email protected]<IP Address>

 

 

 

Leave a Reply

Your email address will not be published.