On multiple nodes after glusterfs is successfully installed, you can manage each node through the gluster Management Console. After successful addition, the public key can be automatically installed, however, if manual installation is required, you can configure the public key on each node according to the following steps.
1. First modify the/etc/hosts file to include the names and IP addresses of all nodes in the cluster;
For example, 192.168.1.100 server01
192.168.1.102 server02
2. Distribute the public key of the Management node (for example, server01, that is, the node where the management software is installed) to each node (for example, server02). The public key is located :~ /. Ssh/gluster. Pub. log on to the management node and run the Copy command:
SCP ~ /. Ssh/gluster. Pub root @ server02 :~ /. Ssh/
3. After successfully copying to the node server02, log on to the server 02 node and enter ~ /. Ssh/directory to append all content of gluster. Pub ~ The command in the/. Ssh/authorized_keys file is as follows:
Cat ~ /. Ssh/gluster. Pub> ~ /. Ssh/authorized_keys
4. You can use the management software to successfully add nodes to a cluster.