Setting up passwordless SSH and sudo access
You can set up passwordless SSH and sudo access so that you only need issue configuration commands on one node in the HA group. (Setting up such access is optional, alternatively you can run commands on each node.)
About this task
To set up passwordless SSH you must configure the mqm id on each node, then
generate a key on each node for that user. You then distribute the keys to the other nodes, and test
the connection to add each node to the list of known hosts. Finally you lock down the
mqm id, then create sudo access for the mqm id on each node.
- Anyone who can gain access to the
mqmuser on one node, can SSH over to the same user on the other two nodes (this is mitigated by removing the password and locking the ID as suggested at the end of this procedure). - There are general security principles around the protection of the private key.
- SSH communication is performed on the HA primary and alternative interfaces of the HA nodes.
- crtmqm -sx: without passwordless SSH, you have to run crtmqm -sxs on your two secondary nodes.
- dltmqm: without passwordless SSH, you have to issue the command on all HA nodes.
- rdqmadm -c or rdqmadm -u: without passwordless SSH, you have to run the command on all HA nodes.
You can remove the passwordless SSH set up and sudo access at the end of
this procedure, if required. You can delete the mqm auth key on your nodes, or, if
you want to be able to use the set up again, you can disable the public auth SSH.
You can then create sudo access for the mqm id on each node.