窗户上有腻子



尝试推/拉过 ssh 时,git 失败并显示以下错误:

"C:Program FilesGitbingit.exe" push -u --recurse-submodules=check -progress "testremote" project:project
Using username "git-receive-pack 'ec2-user".
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Done

远程"testremote"设置为"ssh://ec2-user@sweeb.net:gittest.git",我正在使用之前与PuTTY一起使用的现有密钥对,没有问题。

选美比赛正在运行,我的密钥已加载。

我认为问题是"使用用户名"git-receive-pack 'ec2-user'"这一行。 - 由于"程序文件"中的空格,我认为 git 的命令在 Windows 上被破坏了,所以我试图用双引号括起来,但这似乎不起作用。以前有人见过这样的事情吗?

Windows vars:

GIT_SSH=C:PuTTYplink.exe
PATH=[...];"C:Program FilesGitcmd";"C:Program FilesGitlibexecgit-core";"C:Program FilesGitbin"

这是通过删除"ssh://"来解决的,这显然隐含在 Git 扩展中。

最新更新