Previous Topic: Change the Web Service Port Number of the Backup ServerNext Topic: Change the Backup Server Protocol


Configure the Private Key and Public Key Authentication

The public key and the private key allow you to securely connect to the nodes when you do not provide the password. Each time the Backup Server creates an SSH connection with the nodes, the Backup Server verifies the public key and private key for the respective nodes. If the keys do not match, you get an error message.

Note:

Follow these steps:

  1. Log into the Backup Server as a root user.
  2. Generate a public/private key using the following ssh-keygen command:
    ssh-keygen -t rsa -f server
    

    Two files are generated, namely server.pub and server.

  3. Copy the public key file server.pub to the following location:
    /opt/CA/d2dserver/configfiles/server_pub.key
    
  4. Copy the private key file server to the following location:
    /opt/CA/d2dserver/configfiles/server_pri.key
    
  5. (Optional) Run the following command if you have provided the passphrase while generating the private and public keys:
    echo "passphrase" | d2dutil encrypt > /opt/CA/d2dserver/configfiles/key.pass
    
  6. Change the permission for the key.pass file using the following command:
    chmod 600 /opt/CA/d2dserver/configfiles/key.pass
    
  7. Log into the source node.
  8. Copy the content from the server_pub.key file in the Backup Server to the following location in the node:
    /root/.ssh/authorized_keys
    

The private key and the public key are successfully configured. You can connect to the source nodes using the public key and private key.