atom-git-control icon indicating copy to clipboard operation
atom-git-control copied to clipboard

Permission denied (publickey)

Open litar1 opened this issue 9 years ago • 9 comments

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 screenshot - 26 03 2015 - 17 01 22

Using git from Linux terminal works. Someone know how to fix it?

litar1 avatar Mar 26 '15 16:03 litar1

Same here I have an SSH key setup but it doesn't seem give me access even though it is up.

GeekFreaker avatar Apr 23 '15 13:04 GeekFreaker

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.

litar1 avatar Apr 23 '15 14:04 litar1

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.

GeekFreaker avatar Apr 23 '15 14:04 GeekFreaker

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.

luisnuxx avatar Jun 27 '15 07:06 luisnuxx

I fixed this by renaming my private key to id_rsa and moving it to the ~/.ssh folder.

marcandrews avatar Jun 24 '16 03:06 marcandrews

Doesn't work yet.. image

kodermax avatar Oct 07 '16 07:10 kodermax

Same problem on Mac, cannot be fixed, tried all the solutions online. Gonna be mad.

lleiou avatar Jan 25 '17 23:01 lleiou

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.

gmaggio avatar Feb 22 '17 09:02 gmaggio

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

rpapallas avatar Feb 22 '17 12:02 rpapallas