No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei SAP HANA Appliance Two Node Installation Guide (RH5885H and RH8100 V3+Redhat) 09

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Copying the Authentication Public Keys

Copying the Authentication Public Keys

  1. Log in to server node HW00001, run the following commands to copy its public key to server node HW00002. Enter the root user password as prompted.

    Before running these commands, you must have edited the /etc/hosts file to resolve the host name to the IP address.

    NOTE:

    This document uses server node HW00001/HW00002 as an example. Change HW00001/HW00002 to the actual host name.

    ssh HW00001 "echo $(cat /root/.ssh/id_dsa.pub) >> /root/.ssh/authorized_keys"
    ssh HW00002 "echo $(cat /root/.ssh/id_dsa.pub) >>/root/.ssh/authorized_keys"
    ssh HW00001 "echo $(cat /root/.ssh/id_rsa.pub) >> /root/.ssh/authorized_keys"
    ssh HW00002 "echo $(cat /root/.ssh/id_rsa.pub) >>/root/.ssh/authorized_keys"
    

    The process is similar to the following:

    HW00001: # ssh HW00001 "echo $(cat /root/.ssh/id_dsa.pub) >> /root/.ssh/authorized_keys"
    The authenticity of host 'HW00001 (192.168.10.100)' can't be established.
    ECDSA key fingerprint is ee:4c:78:4b:d8:5f:8d:44:85:c5:46:9c:90:9d:13:bd [MD5].
    Are you sure you want to continue connecting (yes/no)? yes (Enter YES.)
    Warning: Permanently added 'HW00001,192.168.10.100' (ECDSA) to the list of known hosts.
    Password: (Enter the root user password)

  2. Log in to server node HW00002 and run the following commands to copy its public key to server node HW00001.

    ssh HW00001 "echo $(cat /root/.ssh/id_dsa.pub)>> /root/.ssh/authorized_keys"
    ssh HW00002 "echo $(cat /root/.ssh/id_dsa.pub) >>/root/.ssh/authorized_keys"
    ssh HW00001 "echo $(cat /root/.ssh/id_rsa.pub) >> /root/.ssh/authorized_keys"
    ssh HW00002 "echo $(cat /root/.ssh/id_rsa.pub) >>/root/.ssh/authorized_keys"

Translation
Download
Updated: 2019-06-17

Document ID: EDOC1100019155

Views: 21535

Downloads: 101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next