我要评分
获取效率
正确性
完整性
易理解

Configuring the Password-free Login Certificate

Prerequisites

SSH password-free login from the current node has been enabled for the node to be added.

Procedure

  1. Copy the private key file.

    Private key file path for the root user: /root/.ssh/id_rsa

    Private key file path for common users: /home/user/.ssh/id_rsa

    Figure 1 Private key file

    For the root user:

    1
    cp /root/.ssh/id_rsa /home/devkit/.ssh/
    
  2. Set the permission on the copied private key file.

    Set the owner of the copied private key file to devkit and the permission to 400.

    1
    2
    3
    cd /home/devkit/.ssh/
    chown devkit:devkit id_rsa
    chmod 400 id_rsa
    
  3. View the file permission.
    1
    ls -l
    
    Figure 2 File permission