From your local machine, be able to log in or rcp or rsync files to the rpi without having to enter a password. This enables automated scripts to push code to the rpi as a server, or to automate backups.
- Create a local .ssh directory with cd ~; mkdir .ssh
- Create a public/private key pair with ssh-keygen -t rsa (take all the defaults when prompted)
- The private key is ~/.ssh/id_rsa
- The public key is ~/.ssh/id_rsa.pub
- Copy the public key to the remote rpi with scp id_rsa.pub pi@192.168.1.100:./ (your ip address may be different)
- ssh to the rpi with ssh pi@192.168.1.100
- Create a .ssh directory with mkdir .ssh
- Move id_rsa.pub to the .ssh directory and rename it with mv id_rsa.pub .ssh/authorized_keys
- Test with ssh pi@192.168.1.100 - you should be logged in without entering a password.