Public key authentication is generally safer than password-based and is way more convenient.
SSH offers a command to set it up, ssh-copy-id
(part of the openssh client package) will copy your public key to the remote machine.
Use it like this:
ssh-copy-id -i ~/.ssh/my_key.pub remote-machine