Generate SSH Key

If your backup is located on a Remote Server (as we are following restore for backup created using Strategy-1, so here the Remote Server refers to the SAN type etc. and NOT the target Session Monitor machine), generate SSH Key to authorize Session Monitor Server for password less SSH logins by executing below steps on newly installed Session Monitor Server.

Note: If both the files authorized_keys and authorized_keys_orig are present under the /root/.ssh/ folder in the Remote Server, delete the file authorized_keys using command:

rm /root/.ssh/authorized_keys

  1. Log in to the CLI of Session Monitor Server as root user.
  2. Type 'ssh-keygen' and keep pressing the Enter key until the SSH Key is generated.
    For example:
    [root@ocsm-server~]# ssh-keygen
     
    Generating public/private rsa key pair.
    Enter file in which to save the key (/root/.ssh/id_rsa):
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /root/.ssh/id_rsa.
    Your public key has been saved in /root/.ssh/id_rsa.pub.
    ...
  3. Copy the generated SSH Key to your Remote Server by running the following command:
    ssh-copy-id -i ~/.ssh/id_rsa.pub <User>@<Remote_Server_IP>

    Note:

    If the ssh-copy-id command is not present in the new server, please install it using yum install openssh-clients.
    For example:
    [root@ocsm-server ~]# ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.11.12.13
     
    /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
    The authenticity of host '10.11.12.13 (10.11.12.13)' can't be established.
    ECDSA key fingerprint is SHA256:sEAQZxN2alX76X1rPZcVRKARGczMIZaa+Z4CNTQuTd8.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
    /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
    root@10.11.12.13's password:
     
    Number of key(s) added: 1
     
    Now try logging into the machine, with:   "ssh 'root@10.11.12.13'"
    and check to make sure that only the key(s) you wanted were added.