Error: 403 while pushing to AUR, here's how to fix

When I tried to update one of my AUR packages in a different computer, I got the following error.

$ git push
fatal: unable to access 'https://aur.archlinux.org/webfontkitgenerator-git.git/': The requested URL returned error: 403

I did create SSH keys and upload them to my account. How to fix this?

1 Like

I initially cloned the repository with https. However, https clones from the AUR are read only.

The solution is to clone with SSH instead.

git clone ssh://aur@aur.archlinux.org/pkgname.git

Now I can push it successfully.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.