You copied the key, the line is in authorized_keys, and the server still asks for a password. Before anything else, I’d check the permissions, because sshd skips files it considers unsafe.
On the server, as the user you log in as:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chmod go-w ~
This is the StrictModes setting in sshd_config, on by default. sshd checks ownership and modes of your home folder, ~/.ssh and the key file, and if another user could write to them, it ignores the key. Your home folder being group writable is enough to trigger it.
Ownership matters as well. If you created the files with sudo, they might belong to root:
chown -R "$USER": ~/.ssh
On your own machine the same idea applies to private keys. ssh refuses a private key that other users can read, with a loud UNPROTECTED PRIVATE KEY FILE warning, and chmod 600 ~/.ssh/id_ed25519 fixes that.
The server log tells you if this is the problem. Look for a line about bad ownership or modes in journalctl -u ssh (or sshd, depending on the distribution). Please do not set StrictModes to no to make it go away; fixing the permissions takes ten seconds.
Further reading: sshd_config man page, sshd man page, FILES