Local git repo + ssh keys

If you’re you’ve got PasswordAuthentication set to no in your sshd_config, you need to disable it temporarily to copy the keys as the user you normally use using ssh-copy-id git@localhost. Once the key is successfully copied, then you will no longer be prompted for a password.. and you can re-disable Password authentication.