![](/img/trans.png)
[英]Permission denied while creating ssh key using ssh-keygen Git bash Windows 10 Enterprise
[英]Permission denied to Git despite valid SSH authentication
今天早上我的 Windows git 客户让我感到惊讶
> git pull
git@github.xxx.net: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
尽管使用 GitHub 的 SSH 身份验证有效,但仍会发生这种情况
>ssh git@github.xxx.net
PTY allocation request failed on channel 0
Hi dzieciou! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.xxx.net closed.
可能是原因吗? 我拥有访问这个特定项目的所有必要权限。
首先,检查输入后相同的git pull
做了什么
set GIT_SSH_COMMAND="ssh -Tv"
并将其与ssh -Tv git@github.xxx.net
进行比较
其次,确保没有其他GIT
环境变量。 列出它们:
set GIT
这是为了检查是否存在GIT_SSH
环境变量,引用不同的 ssh 作为默认情况下您将与 Git 一起用于 Windows 的环境变量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.