Last modified December 3, 2024

Root Authentication Guide

At this time, JetBackup MC requires Root Access privilege enabled on your server(s) to transfer the SSH keys to your remote server(s) in order to successfully authenticate and establish connection.

Your JetBackup MC root public key is stored here:

/usr/local/jetapps/etc/jetbackupmc/privatekeys/root.rsa.pub

JetBackup MC generates this key automatically upon installation.

First make sure that PermitRootLogin in your SSH configuration file is either set to “yes” or “without-password”.

  1. Edit the SSH configuration file located here:
/etc/ssh/sshd_config
  1. Look for the following line on the file and set it to either yes or without-password then save:
PermitRootLogin yes

OR

PermitRootLogin without-password
  1. Restart the sshd service to apply your changes:
service sshd restart

1. SSH Key

a. If PermitRootLogin is set to yes, JetBackupMC will automatically copy the MC root public key to you remote server(s)
b. If PermitRootLogin is set to without-password, you will have to manually copy the contents of MC root public key located here:

/usr/local/jetapps/etc/jetbackupmc/privatekeys/root.rsa.pub

Append the key to JetBackup remote server(s) authorized_keys file located here:

/root/.ssh/authorized_keys

2. SSH Password

For SSH Password Authentication to work, please set PermitRootLogin to yes.

3. WHM API Token

To create an API token, use WHM's Manage API Tokens interface (WHM >> Home >> Development >> Manage API Tokens).

  1. Click on the 'Generate Token' button.
  2. Enter the token name.
  3. Choose the privileges you want to give.
  4. Make sure to check the 'Everything' privilege.
  5. Hit the 'save' button.
  6. Copy the token to a safe place.

Then enter your WHM API token when adding your server. (For more information about API tokens click on:
https://docs.cpanel.net/whm/development/manage-api-tokens-in-whm/)