First, create a key-pair with ssh-keygen. This is a one-time operation.
ssh-keygen -t dsa
It is good practice to enter a good password, but you may also leave the password empty. That will leave your private key vulnerable to local attacks, but if you need to login somewhere from a cron job, you probably need to do that.