- Generate a public/private key pair and
ssh-keygen
# add `~/.ssh/pi_rsa` when prompted for which file to save the key
- Move the public key to the raspberry pi
ssh-copy-id -i ~/.ssh/pi_rsa.pub pi@raspberrypi.local
- SSH into the raspberry pi
ssh pi@raspberrypi.local