git at git.freebsd.org: Permission denied (publickey)
Philip Paeps
philip at freebsd.org
Wed Apr 7 09:45:46 UTC 2021
On 2021-04-06 23:16:11 (+0800), Thierry Thomas wrote:
> Trying to push my first commit, I get this error:
>
> git at git.freebsd.org: Permission denied (publickey).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
> Any clue?
For the archives: this happened to me when I had my .git/config pushurl
configured as git.FreeBSD.org but my .ssh/config Host configured as
*.freebsd.org.
Making the case in .git/config match the case in .ssh/config made the
problem go away.
Subtle. :)
Philip
--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises
More information about the freebsd-git
mailing list