S
S
Svyatoslav Khusamov2016-07-16 20:55:25
git
Svyatoslav Khusamov, 2016-07-16 20:55:25

How to prevent permanent key reset on github.com?

When trying to make changes to the repository:
$ git push
I get the following error:

ERROR: Permission to <МОЙРЕПОЗИТОРИЙ> denied to khusamov.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

You have to create a new key with the ssh-keygen utility. I delete the old key from the repository settings, I upload the new one. I command git push and all changes are made to the repository.
And the next day, the same error. That is, again there is no access to the repository. You have to create a key again. And he did it five times already.
How to get rid of this white bull?
The virtual machine from where the push is made is located on c9.io.
There are already three such "buggy" repositories.
Github support is trying to help, but so far to no avail.
In general, I do not know where to dig.
There are no such problems with bitbook.
Everything that is described on the page https://help.github.com/articles/error-permission-...tried it, doesn't help. The key seems to work, but the github push does not accept.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Svyatoslav Khusamov, 2016-11-25
@khusamov

c9.io support responded.
It turns out the problem is that the id_rsa file is constantly being overwritten.
https://community.c9.io/t/which-program-can-sponta...

cloud9 puts an autogenerated ssh key into ~/.ssh/id_rsa.
You can add that to github, or put your key into ~/.ssh/id_rsa_github, and add a config like
Host github.com
User git
Port 22
Hostname github.com
IdentityFile ~/.ssh/id_rsa_github
TCPKeepAlive yes
IdentitiesOnly yes
~/. ssh/config

N
Nikon_NLG, 2016-07-17
@Nikon_NLG

You need to find out where the old key goes.
Look in ~/.ssh to see if the key exists (id_rsa, id_dsa, etc), if it has the correct permissions, etc.
Well, in general, check how your connection goes
ssh [email protected]
if there is an error - add the key -vv
ssh -vv [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question