【问题标题】:jfrog cli ssh authentication [Error:] unexpected end of JSON inputjfrog cli ssh 身份验证 [错误:] JSON 输入意外结束
【发布时间】:2016-10-18 22:56:29
【问题描述】:

任何人在使用 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"

【问题讨论】:

  • 当我尝试使用 ssh 密钥下载工件时出现此错误。有趣的错误是在身份验证完成后

标签: artifactory jfrog-cli


【解决方案1】:

您的配置文件有问题。很可能 ssh-key-path 在您的 jfrog-cli.conf 文件中不存在或不正确。 请尝试重命名您的 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-26
    • 1970-01-01
    • 1970-01-01
    • 2016-11-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多