SSH keys

The connection with equipment is carried out via the SSH protocol.

Add a sudo user on this hardware. See Sudo user.

Configuration sshd

Check the /etc/ssh/sshd_config file and the PubkeyAuthentication property on the connected server.

If the PubkeyAuthentication property is missing, commented out, or set to PubkeyAuthentication no, then replace the property value with PubkeyAuthentication yes

After any changes to the /etc/ssh/sshd_config file, restart the sshd service with the command:
sudo systemctl restart sshd

Authorized keys

Add a public key to a specific user's file on the remote server:

/home/username/.ssh/authorized_keys

For root user:

/root/.ssh/authorized_keys