相关疑难解决方法(0)

远程:未授予对存储库的写访问权限。致命:无法访问

我有错误消息:

remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/...../...../': 
The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)

我的朋友邀请我访问他的存储库,我在克隆它时使用了他的个人令牌。
但它说上面的错误。

我也尝试过使用自己的令牌,但它说的是一样的。

当我创建自己的存储库并进行初始提交和推送时,我也遇到了这个问题。
自从 Git*Hub 引入令牌身份验证以来,这个问题就变得越来越严重。

我怎样才能克服这个困难?

github

123
推荐指数
8
解决办法
29万
查看次数

github:没有可用的支持身份验证方法

我使用github并在过去成功添加和同步了我的笔记本电脑上的文件.

截至最近,我开始在运行后收到" PuTTY致命错误:已断开连接:没有可用的支持身份验证方法 ":

git pull origin master(或推送)

然而

ssh git@github.com返回正确的响应:错误:您好用户名!您已成功通过身份验证,但GitHub不提供shell访问连接到github.com已关闭.

在github上挖掘后我发现了这个问题:

没有可用的支持的身份验证方法 您应该知道环境变量GIT_SSH,如果ssh不适合您,git使用它来查找ssh-speaking客户端.git install可能正在使用plink.exe(通过GIT_SSH)来执行身份验证.如果是这样,请确保您运行了pageant.exe,并为github创建了为其加载的密钥.这为plink.exe提供了关键; 没有它,将发生上述错误.

不知道plink.exe或peagant.exe是什么..而且ssh git@github.com似乎正确验证的事实让我想知道这里最好的解决方案是什么..我当然不希望过度复杂我的设置如果不是必要.

git ssh github msysgit

94
推荐指数
6
解决办法
9万
查看次数

尝试克隆 git 存储库后,Win 控制台挂起

我有一个要克隆的远程仓库。我已经设置了 pageant.exe 并添加了私钥。还添加了指向 plink.exe 的 GIT_SSH 变量。在克隆命令之后我得到这样的输出

The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
...
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the …
Run Code Online (Sandbox Code Playgroud)

windows git ssh putty

5
推荐指数
1
解决办法
2525
查看次数

git push 在 bash 中使用 ssh-agent 而不是 gui

使用 git for windows (git-scm.com) 和脚本,我可以让 Bash 停止询问密码,但我似乎无法从 git GUI 中删除密码提示。

远程的 url 正在使用 ssh 链接(见下文),所以我很确定这不是问题。但我不是 git 或 SSH 专家。

git@gitlab.com:repo
Run Code Online (Sandbox Code Playgroud)

已使用提供的密码创建 SSH 密钥 (ED25519),并将公钥添加到托管帐户。SSH 密钥存储在典型位置C:\Users\<user>\.ssh\id_ed25519Help->Show SSH Key在 GUI 中单击时,它会显示我正在使用的 ssh 密钥。ssh-agent 正在后台运行,并且 ssh 密钥已通过以下设置添加到 ssh-agent。

设置 ssh-agent 我使用了这里提供的代码(复制并粘贴在下面以供参考).bashrcC:\Users\<user>路径下创建文件。一切似乎都在 bash 提示符下按预期运行,但在 Git GUI 下却没有。

env=~/.ssh/agent.env

agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }

agent_start () {
    (umask 077; ssh-agent >| "$env")
    . "$env" >| /dev/null …
Run Code Online (Sandbox Code Playgroud)

git openssh ssh-agent windows-10 git-for-windows

5
推荐指数
1
解决办法
567
查看次数

标签 统计

git ×3

github ×2

ssh ×2

git-for-windows ×1

msysgit ×1

openssh ×1

putty ×1

ssh-agent ×1

windows ×1

windows-10 ×1