Setting up the remote origin

NikolaRancic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2025

Hi all, for many years in order to setup remote origin url correctly and connect via .ssh key for new repositories I would need to change the default lines that bitbucket is generating for repositories.

For example if the default lines are:

git clone git@bitbucket.org:cars1/sharedcode.git

git clone https://cars1-admin@bitbucket.org/cars1/sharedcode.git

I would need to change it to:

cars1-admin@bitbucket.org:cars1/sharedcode.git

I do have multiple accounts on bitbucket and .ssh per account (work and private accounts.).

Every time I build new repository, I go through the same grueling process of finding why I can't connect to remote repository. Is there any way to make it more user friendly or am I using something wrong?

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 10, 2025

G'day, @NikolaRancic 

Welcome to the community!

You can consider following our guidelines below on how to manage multiple SSH keys by creating an SSH configuration

Managing multiple Bitbucket user SSH keys on one device 

This will allow you to connect to multiple accounts without having to update your remote URL.

I hope this helps.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events