jfrog cli ssh authentication [错误:]意外结束JSON输入

时间:2016-10-18 22:56:29

标签: artifactory jfrog-cli

使用cli搜索神器存储库时遇到以下错误的人?有时会出现以下错误(大约1次失败,3次成功)。有什么想法吗?

g Artifactory.
[Info:] Searching Artifactory using AQL query: items.find({"repo": "NONPROD_RPM","$or": [{"$and": [{"path": {"$match":"*"},"name":{"$match":"*"}}]}]}).include("name","repo","path","actual_md5","actual_sha1","size")
[Error:] Post ssh://artifactory.xyz.com:1339/api/search/aql: unsupported protocol scheme "ssh"
[Error:] Post ssh://artifactory.xyz.com:1339/api/search/aql: unsupported protocol scheme "ssh"

1 个答案:

答案 0 :(得分:0)

您的配置文件出现问题。很可能你的jfrog-cli.conf文件中的ssh-key-path不存在或不正确。 请尝试重命名您的jfrog-cli.conf文件。

mv ~/.jfrog/jfrog-cli.conf ~/.jfrog/jfrog-cli.conf.old

/opt/jfrog/jfrog rt config --url ssh://artifactory.xyz.com:1339/ --ssh-key-path /user/<latomaster>/.ssh/id_rsa