Fixing JetBackup SSH Config for Destination Registration

Error: Registering Destination... Failed - Error: Warning: Permanently added 'xx.xx.xx.xx' (ECDSA) to the list of known hosts. root@xx.xx.xx.xx: Permission denied (gssapi-keyex,gssapi-with-mic,password)

This error message indicates that the registration of the destination has failed due to a permission denied error when attempting to establish an SSH connection between the main server and the backup server. It also mentions the addition of an IP address (xx.xx.xx.xx) to the list of known hosts.

To solve the error encountered while registering a destination on JetBackup, follow the steps below. Make sure to ensure that both IPs are whitelisted between the main server and the backup server. If you have installed CSF (ConfigServer Security & Firewall), Cphulk Brute-force Protection, or any other kind of firewall, make sure to whitelist the IPs first.

  1. Whitelist IPs: Whitelist the IP addresses of both the main server and the backup server on each other's firewall or security settings.

  2. Check SSH Connection: Verify the SSH connection between the servers. This will automatically save the SSH public key at authorized_keys. Ensure that the SSH connection is working properly.

  3. Verify PubkeyAuthentication Setting: Check the value of PubkeyAuthentication in the /etc/ssh/sshd_config file by running the following command:

cat /etc/ssh/sshd_config | grep "PubkeyAuthentication"

If the output is "yes," then the setting is already correct. If the output is "no" or if the line is commented out, continue to the next step.

  1. Update PubkeyAuthentication Setting: To change the value of PubkeyAuthentication to "yes" in the /etc/ssh/sshd_config file, run the following command:
sudo sed -i 's/#\?PubkeyAuthentication.*/PubkeyAuthentication yes/' /etc/ssh/sshd_config

This command replaces the line containing PubkeyAuthentication with PubkeyAuthentication yes in the sshd_config file.

  1. Restart SSH Service: After updating the configuration, restart the SSH service using the following command:
sudo systemctl restart sshd
  1. Verify Service Status: Check the status of the SSH service to ensure it is running:
sudo systemctl status sshd

If the service is running without any errors, you have completed the process.

  1. Retry Registering Destination: Now, try registering the destination again. It should work properly without encountering a previous error.

By following these steps, you should be able to resolve the error and successfully register the destination on JetBackup.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...