0

I am facing a problem with git, no matter which command i execute i get the following error:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

By trying ssh -vT git@github.com: Hi emaborsa! You've successfully authenticated, but GitHub does not provide shell access.debug1: client_input_channel_req: channel 0 rtype exit-status reply 0

I am working on windows 10, in the WSL the same settings work.

I already read this. I already created a new ssh-key, added it to my ssh keys on github, did not help.

I cannot checkout any github repo using ssh, always the same error.

I updated git to the last version.

Until yesterday it worked fine. The same for my collegues.

Emaborsa
  • 2,360
  • 4
  • 28
  • 50
  • 1
    The issue might be that you don't have permission with the repo you're accessing, not with git? – evolutionxbox Jul 28 '23 at 09:03
  • I created the repo, i am committing on it since months. However, I cannot checkout any other repo using ssh. – Emaborsa Jul 28 '23 at 09:04
  • The more probable cause is that git doesn't use your identity (public key) as ssh used when invoked directly. Could you `git clone --verbose`? – YSC Jul 28 '23 at 09:13
  • I generally work with `ssh-agent` so git and ssh can equally find my identities. Do you? – YSC Jul 28 '23 at 09:15
  • `git clone --verbose` leads to the same error. We've newer worked with `ssh-agent`. – Emaborsa Jul 28 '23 at 09:17

1 Answers1

0

After days we found the problem. It was neither a git problem nor the firewall. The Admins activated the Custom Home Folder in the Active Directory, that leaded that git could not fine the ssh key and so was not able to access the private repositories.

Emaborsa
  • 2,360
  • 4
  • 28
  • 50