generate a new ssh key if you don’t have one
ssh-keygen -t ed25519
copy the content displayed with
cat ~/.ssh/id_ed25519.pub
enter the host via SSH
In the root there should be a hidden folder called .ssh, if it doesn’t exist create it
mkdir -p ~/.ssh
copy the generated ssh-key into
~/.ssh/authorized_keys
Done, then you can connect to the host without entering a password