Add SSH key to root user
On your device, create a new SSH key (private/public key). Get the content of the public key. On the remote host (with sudo -i) Then open the file And paste the content of the public key at the end of the file. Exit and save….