在travis项目设置下找不到SSH密钥设置

问题描述 投票:0回答:1

我的CI项目依赖于另一个私人仓库。所以我参考document使用

来上传私钥
➜ travis sshkey --upload ~/.ssh/id_travis_rsa --pro
Updating ssh key for Jeff-Tian/uni-sso with key from /Users/tianjef/.ssh/id_travis_rsa

Current SSH key: key for clone k8s-config
Finger print:    65:25:66:26:4d:5d:9f:ac:25:ba:ea:be:c4:d5:e3:5f

从上面我仔细检查了指纹,并与github ssh键进行了比较:

enter image description here

它们匹配。

但是,travis构建仍然失败:

([https://travis-ci.com/github/Jeff-Tian/uni-sso/builds/161350192

$ git clone [email protected]:Jeff-Tian/k8s-config.git ${HOME}/k8s-config
Cloning into '/home/travis/k8s-config'...
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The command "git clone [email protected]:Jeff-Tian/k8s-config.git ${HOME}/k8s-config" failed and exited with 128 during .

然后我检查travis设置上的设置,找不到ssh键设置窗格:

enter image description here

帮助:

哪里出问题了?这是Travis CI错误吗?

travis-ci ssh-keys
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.