[email protected]:Windows 上的权限被拒绝(公钥)

问题描述 投票:0回答:1

我遇到了 git 的问题,无论我执行哪个命令,我都会收到以下错误:

[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.

通过尝试

ssh -vT [email protected]
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

我正在 Windows 10 上工作,在 WSL 中可以使用相同的设置。

我已经读过这个。我已经创建了一个新的 ssh 密钥,将其添加到 github 上的 ssh 密钥中,但没有帮助。

我无法使用 ssh 查看任何 github 存储库,总是出现相同的错误。

我将 git 更新到了最新版本。

直到昨天,一切都还顺利。我的同事也一样。

git public-key
1个回答
0
投票

几天后我们发现了问题。这既不是 git 问题,也不是防火墙问题。管理员激活了

Home Folder
中的自定义
Active Directory
,导致 git 无法修改 ssh 密钥,因此无法访问私有存储库。

© www.soinside.com 2019 - 2024. All rights reserved.