Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,683
Community Members
 
Community Events
176
Community Groups

Can't login via SSH when Github and Bitbucket usernames are the same

I have the same email and username of github and bitbucket accounts. I can easily add my github account and it works smoothly. After I add the bitbucket one and try to clone a remote repo, I get this error:

Please make sure you have the correct access rights
and the repository exists.
Forbidden

fatal: Could not read from remote repository.

It doesn't throw any authentication errors, so creds are fine. The only thing I can do right now is to see my public remote repositories. In the bitbucket SSH keys settings, I see Never used in the Last used column. Moreover, I've removed .ssh folder and set up everything from scratch - doesn't work. I've also tried to generate Bitbucket SSH key myself - doesn't work.

I also have a default Bitbucket account and it works perfectly fine.

Mac OS 10.15.2
Sourcetree 4.0.1
Embedded Git 2.23.0 (in use)
System Git 2.24.1 (switching doesn't help)

1 answer

Try adding the following lines to your ssh configuration file. In my Ubuntu, it is ~/.ssh/config

 

Host bitbucket.org
        HostName bitbucket.org
        PreferredAuthentications publickey
        IdentityFile ~/.ssh/id_rsa

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events