T
T
Troodi Larson2019-07-08 21:35:20
git
Troodi Larson, 2019-07-08 21:35:20

Doesn't allow cloning via SSH, why?

I create the key as described in the github documentation.

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Then I add the public key to the account. I made various attempts, but there is always an error with the github:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

There was no such problem with bitbucket, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lorc, 2019-07-23
@lorc

And just "ssh github.com" works fine? Shows something like "Hi lorc! You've successfully authenticated, but GitHub does not provide shell access." ?
If not, then the key was added incorrectly.
If yes, then you need to look at the repository access settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question