K
K
Karina2017-01-31 14:42:17
git
Karina, 2017-01-31 14:42:17

Why can't I push to my own repository?

I used to work on one computer and now I work on another. And on the computer I'm currently working on, I can't push into the repository.
I did standard operations:
ssh-keygen -t rsa -C 'my_email'
and inserted the contents of the rsa.pub key into ssh keys on the githab website.
And one more thing:
ssh-add rsa
But before pushing git asks me for my name and password. 100% I enter everything correctly.
But they still write to me - Invalid username or password and Authentication failed for the address of my repository.
The only thing that can be - is Two-factor Authentication (recently enabled) - does not let me push.
What to do?
Thanks to all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2017-01-31
@iKapex

git remote show origin

M
Mika Slepinin, 2017-01-31
@mikalaikaia

Check the key, the rights to the key. They should be 600 for the private key.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question