Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Permission to a branch

lucasnavigatetravel September 6, 2018

Hello Guys!

I need to add a SSH KEY and attach permission only to specific repository and specific branch. Does bit bucket do not support that restriction using ssh key?

I tried accessing branch permission but it does not show any option to select SSH KEYs in the permission, only USERS.

Thanks in advance.

 

 

1 answer

0 votes
Mikael Sandberg
Community Champion
September 6, 2018

The short answer is that you cannot give branch permissions to a SSH key, it has to be a user. SSH is a network protocol that allows you to authenticate a user. In Bitbucket you associate a key to a user, and when you set the permissions on the project/repository/branch you do it for the user/group.

lucasnavigatetravel September 6, 2018

Cool! Thank you Mikael! So, if I create one user and associate a key I can do it? Does bitbucket cloud allow to do this association? Thank you so much!

Mikael Sandberg
Community Champion
September 6, 2018

Yes, you add the public key to your account under Account settings > SSH keys

lucasnavigatetravel September 6, 2018

But how can I associate some ssh key to user for who access using ssh key have same permission as the user?

Mikael Sandberg
Community Champion
September 7, 2018

Each user has to setup their own ssh key and add the public key to their user profile. You as an admin cannot do it on behalf of a user.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events