atom-git-control
atom-git-control copied to clipboard
Permission denied (publickey)
Hello,
I have a problem with git-control on my Ubuntu 14. I have github repository with ssh remote. I saved my public key in github accout and test command "ssh -vT [email protected]" throw no error.
When I toggle the module I have an error which can be seen in the image below
Using git from Linux terminal works. Someone know how to fix it?
Same here I have an SSH key setup but it doesn't seem give me access even though it is up.
The problem is in the ssh, Github and ssh agent configuration. I do not have the problem now. To be honest, I do not remember, how I exactly fixed it. Just configure and use ssh agent properly.
I have setup and ssh key, but it still cannot access, thank you @litar1. I think I need F2A Authentication, but I'm not sure it will work... if you remember please help.
I had something like this before, because I use a specific key to code control.
What you need to before commit/push is something like this.
ssh-add ~/.ssh/code_private_key
If git-control could allow us to select the key that you want to use to push the code, that would be a good feature.
I fixed this by renaming my private key to id_rsa
and moving it to the ~/.ssh
folder.
Doesn't work yet..
Same problem on Mac, cannot be fixed, tried all the solutions online. Gonna be mad.
Not sure if this is related but I used to have the same problem. Maybe this is something worth trying:
https://github.com/jacogr/atom-git-control/issues/111#issuecomment-216383537
If it still fails, try re-cloning first.
Just do the following:
- Assuming you have added your ssh public key on GitHub/GitLab.
-
chmod 400 ~/.ssh/id_rsa
-
chmod 400 ~/.ssh/id_rsa.pub
-
ssh-add ~/.ssh/id_rsa
-
Quit and reopen yout terminal and type
ssh-add -l
if you see an SHA256 fingerprint there all done otherwise try again.
Quit and reopen Atom and you should be able to use it. Rafael