Configuring SSH Switching Permissions

Scenarios

To switch to an SAP node from the jump host and to allow SSH switchovers between SAP nodes, you must configure the nodes to be trusty.

Procedure

  1. Upload the key file to the jump host.

    1. Use WinSCP to log in to the jump host. Ensure that user root and the key file are used for authentication. Upload the certificate private key file (.pem file) to the directory /usr on the jump host.
    2. Copy the certificate private key file to the /root/.ssh directory and rename the file id_rsa.

      For example, if the original file name is private.pem, run the following commands to rename it:

      cp /usr/private.pem /root/.ssh/id_rsa

      cd /root/.ssh/

      chmod 600 id_rsa

    3. Run the following command to generate a public key file:

      cat authorized_keys >>id_rsa.pub

  2. Use the server/backup plane IP address to allocate the locally stored public key file to an SAP HANA node.

    Ensure that the SAP HANA node cannot be the planned standby node and the subsequent operations to manually install SAP HANA must be performed on this node.

    The command is in the following format:

    scp /root/.ssh/id_rsa.pub Peer IP address:/root/.ssh/

  3. Use the server/backup plane IP address to allocate the private key file and authorized_keys file to all nodes excepting the SAP HANA Studio node.

    The commands are in the following format:

    scp /root/.ssh/id_rsa Peer IP address:/root/.ssh/id_rsa

    scp /root/.ssh/authorized_keys Peer IP address:/root/.ssh/

  4. Verify the switching.

    Use SSH to switch from the jump host to all nodes excepting the SAP HANA Studio node for verification.

    For example, the server/backup plane IP address of the NFS server is 10.0.5.101. To switch from the jump host to the NFS server, run the following command:

    ssh 10.0.5.101