Fixing JetBackup SSH Config for Destination Registration Print

  • 0

Error: Registering Destination... Failed - Error: Warning: Permanently added 'xx.xx.xx.xx' (ECDSA) to the list of known hosts. [email protected]: 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.


Was this answer helpful?

« Back

Send Message