C
C
Cyril2020-05-20 12:24:45
git
Cyril, 2020-05-20 12:24:45

Why do I get when working with git on windows Permission denied (publickey)?

Hello.
I can’t work with git via ssh, I generated a key, added it to github, did ssh-add.
And I still get:

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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


I get this when using CMD, PowerShell, Git Bash.
Git is installed, windows system, latest x64 update, OpenSSH agent in services is running.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2020-05-20
@Nc_Soft

Everything is done through gitbash
1. generate the key by typing ssh-keygen and enter several times
2. add the public key to github, it is in cat ~/.ssh/id_rsa.pub
3. clone via gitbash (git clone ....)
via gitbash should work, the rest of the manipulations with the paver shell, etc., to your taste and color.

D
DarkRou, 2020-05-20
@DarkRou

Is the git account logged in?

V
vreitech, 2020-05-20
@fzfx

> generated a key
than, how?
> made ssh-add
what command? in what shell?
> I get this when using CMD, PowerShell, Git Bash.
receive in response to which command?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question