我正在尝试通过ssh将Jenkins与Git进行设置。
标准执行:
git clone ssh://[username]@[server]/srv/git/[repo]
在输入密码后,代码仓库已经克隆到我的硬盘上。
现在在Jenkins上进行操作。
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.
另一种方法是