Previous Topic: Example: Configure Authentication From a Storage Server to a Reporting ServerNext Topic: Update the Existing Public Key File


Generate Keys and Copy the Public Key to a Reporting Server

From the remote storage server, generate an RSA key pair as the caelmservice user and then copy the public key as authorized_keys_RSS to the /tmp directory on a reporting CA User Activity Reporting Module server. The reporting server typically has an authorized_keys file in the .ssh directory that contains a concatenation of public keys from various collection servers. Send the key with a unique name so that it can be appended to the existing authorized_keys file.

To generate the RSA public/private key pair and copy the public key from the remote storage to a reporting server

  1. Log on to the remote storage server through ssh as the caelmadmin user.
  2. Switch users to root.
  3. Switch users to the caelmservice account.
    su - caelmservice
    
  4. Generate an RSA key pair as the caelmservice user.
    ssh-keygen -t rsa
    
  5. Press Enter to accept the default when each of the following prompts appears:
  6. Change the permissions of the .ssh directory using the following command:
    chmod 755 .ssh
    
  7. Navigate to the .ssh directory.
  8. Copy id_rsa.pub as authorized_keys_RSS to the /tmp directory on the reporting server.
    scp id_rsa.pub caelmadmin@<reporting_server>:/tmp/authorized_keys_RSS