M
M
Maxim2018-01-15 18:03:49
git
Maxim, 2018-01-15 18:03:49

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

1 answer(s)
A
Alex McArrow, 2018-01-16
@AlexMcArrow

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 question

Ask a Question

731 491 924 answers to any question