I'm trying to use the Stash REST API. We use SSH to authenticate.
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'
is returning:
{"errors":[{"context":null,"message":"Authentication failed. Please check your credentials and try again.","exceptionName":null}]}
and
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'
is erroring with:
curl: (1) Protocol ssh not supported or disabled in libcurl
What is the right incantation to use Stash's REST API with SSH authentication?