Answer the question
In order to leave comments, you need to log in
Why can't I push with a new ssh key?
I created a key ssh-keygen -t rsa -C "[email protected]"
I added a public key to the repository, I get an error when pushing
repository access denied. access via a deployment key is read-only.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Answer the question
In order to leave comments, you need to log in
Looks to me like you uploaded the new key as a "deployment" - which is read-only.
You need to add your key via profile (Github, GitLab, Gogs)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question