Skip to Content

Error: User modify failed. Cannot modify user on this node: Authentication by SSH key not supported!

Error: User modify failed. Cannot modify user on this node: Authentication by SSH key not supported!

OR

Error: User modify failed. Cannot modify user on other nodes: Authentication by SSH key not supported!



This error occurs if you have disabled key authentication for the root user.

The master and slave nodes should enable key authentication for the root user to modify users.

  1. Run the following command to check if the key Authentication is enabled or not.

root@gateway:~# cat /etc/ssh/sshd_config | grep -i "Match User\|PubkeyAuthentication"

   2. Run the following command to enable key authentication for the root user and restart sshd service.

root@gateway:~# echo "Match User root" >> /etc/ssh/sshd_config ; echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config

root@gateway:~# systemctl restart sshd