Ce contenu n'est pas disponible dans la langue sélectionnée.

9.9. Configuring SSH Keys on the Node Host


Copy the appropriate SSH key from the broker host to each node host. This is necessary to move gears between node hosts. The following instructions describe how to configure your SSH keys.
You can have multiple broker hosts configured for redundancy. Ensure that each node host has the rsync_id_rsa.pub public key of each broker host by repeating steps three through five of the following procedure for each broker host.

Procedure 9.6. To Configure SSH Keys on the Node Host:

  1. On the node host, create a /root/.ssh directory if it does not exist:
    # mkdir -p /root/.ssh
    Copy to Clipboard Toggle word wrap
  2. Configure the appropriate permissions for the /root/.ssh directory:
    # chmod 700 /root/.sshchmod 700 /root/.ssh
    Copy to Clipboard Toggle word wrap
  3. Copy the SSH key from the broker host to each node host:
    # scp root@broker.example.com:/etc/openshift/rsync_id_rsa.pub /root/.ssh/scp root@broker.example.com:/etc/openshift/rsync_id_rsa.pub /root/.ssh/scp root@broker.example.com:/etc/openshift/rsync_id_rsa.pub /root/.ssh/
    Copy to Clipboard Toggle word wrap
  4. Supply the root user password of the broker host when prompted:
    root@broker.example.com's password:
    Copy to Clipboard Toggle word wrap
  5. Copy the contents of the SSH key to the /root/.ssh/authorized_keys file:
    # cat /root/.ssh/rsync_id_rsa.pub >> /root/.ssh/authorized_keyscat /root/.ssh/rsync_id_rsa.pub >> /root/.ssh/authorized_keyscat /root/.ssh/rsync_id_rsa.pub >> /root/.ssh/authorized_keyscat /root/.ssh/rsync_id_rsa.pub >> /root/.ssh/authorized_keys
    Copy to Clipboard Toggle word wrap
  6. Configure the appropriate permissions for the /root/.ssh/authorized_keys file:
    # chmod 600 /root/.ssh/authorized_keyschmod 600 /root/.ssh/authorized_keys
    Copy to Clipboard Toggle word wrap
  7. Remove the SSH key:
    # rm -f /root/.ssh/rsync_id_rsa.pubrm -f /root/.ssh/rsync_id_rsa.pub
    Copy to Clipboard Toggle word wrap

Important

Ensure you have performed this procedure on all node hosts.
Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat