Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question