2013-09-24 38 views
3

当试图推/拉通过ssh,GIT中与下面的错误失败:GIT中用腻子的窗口上

"C:\Program Files\Git\bin\git.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用户@ sweeb .net:gittest.git“,并且我使用了之前没有问题的PuTTY使用的现有密钥对。

Pageant正在运行,加载了我的密钥。

我认为问题是“使用用户名”这一行git-receive-pack'ec2-user“。” - 我认为git的命令在窗口中打破,这要归功于“Program Files”中的空格,所以我试图用双引号将所有内容都包围起来,但似乎并不奏效。有没有人见过这样的事情?

的Windows增值经销商:,这是在Git的扩展显然暗示:

GIT_SSH=C:\PuTTY\plink.exe 
PATH=[...];"C:\Program Files\Git\cmd";"C:\Program Files\Git\libexec\git-core\";"C:\Program Files\Git\bin\" 
+0

'ssh:// ec2-user @ sweeb.net/gittest.git'会更好吗? (''/''而不是':'')。 ':'是SCP语法,并假设一个配置文件,如http://stackoverflow.com/a/18909539/6309。 – VonC

+0

是否解决了这个问题? – NoobMe

回答

0

这是通过删除 “// SSH” 解决。