I am logged in on host "mac" as user "mausy" and want to remotely login on host "raspberry" as user "pi". But I don't want to have to enter my password every time. This is where SSH public keys come in handy.
(please note that all passwords and keys shown below are fictional)
NOTE: Make sure you have SSH installed on both hosts. SSH usually also comes with scp
which will be used also.
I will start by creating a public key on host "mac":
mausy@mac ~ $ ssh-keygen -t rsa