On the Mac
- Use the Secretive app to generate new ssh key
- Copy the public key to user’s ~/.ssh/authorized_keys on the server
ssh-copy-id -f -i <<path to public key>> <<username>>@<<ip>>
example:
ssh-copy-id -f -i /Users/${USER}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/kfjakjflka481958917.pub [email protected]