node configuration¶
Authenticating Nodes Using SSH Keys¶
If you choose to use SSH keys to connect to all the nodes of the cluster to be created, you need to configure the public and private keys as described below.
-
Execute the following command to generate public and private keys on any node of the managed cluster.
-
Execute the
ls
command to check whether the key on the management cluster is successfully created, and the correct feedback is as follows:ls #View all files in the directory, the expected output is as follows: id_rsa id_rsa.pub known_hosts
Where the file named
id_rsa
is the private key and the file namedid_rsa.pub
is the public key. -
Send the public key file
id_rsa.pub
to all nodes of the cluster to be created through SCP.Replace the root@10.0.0.0 user account and IP in the above command with the node username and IP of the cluster to be created. Each planned node of the cluster to be created needs to perform the same operation.
-
Base 64 encode the private key file
id_rsa
. -
Download the encoded private key file
id_rsa
to your current node, and upload the private key file on the interface.