簡體   English   中英

Git在窗戶上用膩子

[英]Git with putty on windows

當試圖推送/拉過ssh時,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-user@sweeb.net:gittest.git”,我使用的是現有的密鑰對,我之前使用過的PuTTY沒有問題。

Pageant正在運行,我的密鑰已加載。

我認為問題是“使用用戶名”git-receive-pack'ec2-user“。” - 由於“程序文件”中的空格,我認為git的命令在Windows上打破,所以我試圖用雙引號包圍所有內容,但這似乎不起作用。 以前有人見過這樣的事嗎?

Windows vars:

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

這是通過刪除“ssh://”來解決的,這顯然隱含在Git Extensions中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM