First, generate a public/private RSA key pair on Ooga.
ooga% ssh-keygen -t rsa -f ~/.ssh/id_rsa
When you are asked for a passphrase, leave it empty. Now send the public key to Booga.
ooga% cd .ssh ooga% scp id_rsa.pub user@booga:~/.ssh
Next, log in to Booga and add the public key to the list of authorized keys.
ooga% ssh user@booga booga% cd .ssh booga% cat id_rsa.pub >> authorized_keys2 booga% chmod 640 authorized_keys2 booga% rm -f id_rsa.pub
Note that the filename is authorized_keys2, not authorized_keys. That’s it; you’re ready to ssh from Ooga to Booga without having to enter a password.
If you don’t have the .ssh folder you have to do this:
mkdir ~/.ssh
chmod 700 ~/.ssh