我正在使用我的詹金斯作为本地主机我在github中添加了我的公钥并尝试在机器中克隆
git clone [email protected]:xyz/xyz.git
它完美地克隆了 repo commit repo 和 pull push 在本地机器上完全工作。
我想使用 jenkins 通过 jenkins 和 ssh 来构建我的工作我将我的私钥添加到用户名中的管理凭证中,使用 ssh 密钥,就像这样
但我收到错误消息
Failed to connect to repository : Command "git ls-remote -h -- [email protected]:neetesshhr/sheildxwebpage.git HEAD" returned status code 128:
stdout:
stderr: No ED25519 host key is known for github.com and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我试着关注这个link
但是根本不起作用如何解决这个问题?
实际的错误信息是“
Host key verification failed
”,这意味着你需要将远程服务器主机密钥指纹添加到Jenkins。
githubs-ssh-key-fingerprints
找到所说的指纹,正如我在这里提到的。