Reputation: 365
https://confluence.atlassian.com/bitbucket/repository-resource-423626331.html
I'm looking at the API documentation in order to make a private repo with a shell script. I'd like to use SSH and not have to enter my username and password.
Is this possible at this point?
Upvotes: 3
Views: 3893
Reputation: 3680
The Bitbucket REST API supports http(s), but not ssh. Git can work over ssh, but that's something entirely different from the Bitbucket API.
To update/retrieve private info in Bitbucket, you need to be authenticated. The options you have are either basic authentication with the credentials of a user with sufficient permissions (not what you want), or OAuth, which might be appropriate for you.
How to use OAuth is documented here.
Upvotes: 2