【发布时间】:2015-09-10 16:45:12
【问题描述】:
我正在尝试使用 Stash REST API。我们使用 SSH 进行身份验证。
curl -X GET -u me@example.com: --key ~/.ssh/id_rsa \
'https://stash.corp.netflix.com/rest/api/1.0/projects/MY_PROJ/repos/MY_REPO/commits'
正在返回:
{"errors":[{"context":null,"message":"Authentication failed. Please check your credentials and try again.","exceptionName":null}]}
和
curl -X GET -u me@example.com: --key ~/.ssh/id_rsa \
'ssh://stash.corp.netflix.com/rest/api/1.0/projects/MY_PROJ/repos/MY_REPO/commits'
出错了:
curl: (1) Protocol ssh not supported or disabled in libcurl
使用 Stash 的 REST API 和 SSH 身份验证的正确方法是什么?
【问题讨论】:
-
REST 是一种使用 http 协议的技术。它甚至如何通过原始 ssh 连接工作?
标签: curl ssh bitbucket-server