# Gitea Gotchas ## Push fails when repo created by different API user than SSH alias **Symptom:** `git push` to a new repo fails with "User permission denied for writing." **Cause:** Repo was created via API using `ai_admin` token, but SSH alias authenticates as `cluster-administrator` who has no access. **Fix:** After creating a repo via API, add the SSH-authenticating user as collaborator: `PUT /api/v1/repos///collaborators/` with admin permission. Do this before attempting to push.