I want to use rsync to sync a folder between two machines. Because I don't want to type in the password constantly I used this guide to create a key-pair, of which I put the public key in the destination machines ~/.ssh/authorized_keys

This seems to work fine for ssh: I can login without typing a password. When I run the following command however, the remote machine still askes for the password.

sudo rsync --delete -azvv -e ssh '/home/kramer65/mylocalfolder/' user@othermachine:/home/pi/myremotefolder
Does anybody know how this can be, and more importantly, how I can solve this? All tips are welcome!