我試圖用ssh設置jit與git。用ssh設置jenkins與git
標準執行:將密碼repositorium是我的硬盤上克隆
git clone ssh://[username]@[server]/srv/git/[repo]
後。
現在對詹金斯
ssh://[username]@[server]/srv/git/[repo].git
Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h ssh://[username]@[server]/srv/git/[repo].git HEAD" returned status code 128:
stdout:
stderr: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
或另一種方式是
同樣的原因在我們的設置中。一個作業沒有節點限制,並且在結賬時「隨機」失敗(當在服務器上執行而沒有有效密鑰時)。 – user158037