- Check if there is an existing ssh key available
$ ls ~/.ssh
If id_rsa
(private key) and id_rsa.pub
(public key) are available, go to step 3.
- Generate new keys
ssh-keygen
- Copy ssh keys to target computer
ssh-copy-id {username}@{ip-address}
FROM https://github.com/raspberrypi/documentation/blob/master/remote-access/ssh/passwordless.md