How do I add a standby node to my cluster using the ssh key method?
Please be aware this method is for advanced system admin users and we do support password auth for the initial adding of a standby node. Once the node is added the cluster will generate and configure key pairs itself.
Both the CLI and GUI methods require command line input, the GUI method downloads the private key to use in the 'add standby node' interface rather than using the command in step 5. All other steps are the same.
On your main node generate a new ssh key that uses the ecdsa authentication method
ssh-keygen -t ecdsa copy
This will prompt for a location and passphrase, as this key is only going to be used temporaraly, you can leave these blank/default.
Cat out the public key and copy the contents to a notepad file or similar
cat /root/.ssh/id_ecdsa.pub copy
On the server that is being added as a standby node, add the public key to the deskpro_admin users authorized keys file
echo [public key] >> /home/deskpro_admin/.ssh/authorized_keys copy
On the main node test the ssh connection works by trying to open a ssh tunnel using the generated key
ssh deskpro_admin@[ip address] -i /root/.ssh/id_ecdsa copy
If the session connects correctly you can close the tunnel then add the node to the cluster/
To add the node to the cluster the command is:
opc cluster node add --ssh-host [ip address] --ssh-user deskpro_admin --ssh-key-path /root/.ssh/id_ecdsa copy
Once the node has been added to the cluster you can check the status with
opc cluster node list copy
Once everything is working correctly you can then remove the generated private key
Veuillez vous connecter ou vous enregistrer pour soumettre un commentaire.