Curl 如何将隐藏RESTAPI与SSH身份验证一起使用?

Curl 如何将隐藏RESTAPI与SSH身份验证一起使用?,curl,ssh,bitbucket-server,Curl,Ssh,Bitbucket Server,我正在尝试使用stashrestapi。我们使用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 c

我正在尝试使用stashrestapi。我们使用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: (1) Protocol ssh not supported or disabled in libcurl

使用Stash的REST API进行SSH身份验证的正确方法是什么?

根据Kenster的评论,访问REST API的唯一方法是通过HTTP。SSH只提供对git托管层的访问


您可以使用Basic auth或访问REST。

根据Kenster的评论,访问REST API的唯一方法是通过HTTP。SSH只提供对git托管层的访问


您可以使用Basic auth或访问REST。

根据Kenster的评论,访问REST API的唯一方法是通过HTTP。SSH只提供对git托管层的访问


您可以使用Basic auth或访问REST。

根据Kenster的评论,访问REST API的唯一方法是通过HTTP。SSH只提供对git托管层的访问


您可以使用基本身份验证或访问REST。

使用ff格式的
~/.netrc
文件进行此操作:

machine example.com
login daniel
password qwerty

请参阅:

使用ff格式的
~/.netrc
文件进行此工作:

machine example.com
login daniel
password qwerty

请参阅:

使用ff格式的
~/.netrc
文件进行此工作:

machine example.com
login daniel
password qwerty

请参阅:

使用ff格式的
~/.netrc
文件进行此工作:

machine example.com
login daniel
password qwerty

请参阅:

REST是一种使用http协议的技术。REST是一种使用http协议的技术。REST是一种使用http协议的技术。REST是一种使用http协议的技术。它甚至如何通过原始ssh连接工作?