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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

May I need to create git account in our bitbucket server?

Hi Support,

I want to use Bitbucket service using SSH access key. When I created both project/repository, I had add SSH key into my account. I will follow the instruction to clone my repository into remote server.

 

git clone ssh://git@bitprd.hefechip.com:7999/hktst/test_rep01.git

 

The account git who is not create in Bitbucket user or server user. What is a correctly settings? 

Thanks.

JohnTsai

johntsai@hefechip.com

 

1 answer

0 votes
Dave Chevell Atlassian Team Jul 15, 2020

Hey @johntsai !

The short answer: this is normal, you don't need to do anything. Use the suggested URL to clone and it will work.

The long answer: git, and Bitbucket, don't really care about the SSH user. SSH is just a transport mechanism. Your SSH key is what determine which user you are, the SSH "git@…" username is ignored entirely. You can test this yourself, by replacing the username with something else:

git clone ssh://thisuserdoesnotexist@bitprd.hefechip.com:7999/hktst/test_rep01.git

If you did this, you'd find it worked just the same!

tl;dr the "git" username is there just to meet the requirements of the SSH protocol, and the username "git" is chosen in particular simply by convention. Bitbucket Cloud, GitHub, etc. all use the same username, for the same reason.

I hope that helps!

Cheers,

Dave

Hi Dave,

Thanks for your reply~

Yes, I had tried another account to replace git@. It's still not working to clone my repo to local. 

I have to follow the instruction at https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/#SetupanSSHkey-ssh2

I used linux client (Set up SSH on macOS/Linux) and I can't pass the verification using 

ssh -T git@ourbitbucket.com

 

prompt: git@ourbitbucket.com's password: 

 

Do you know why the SSH Access key is not working? Where I can check the log for this issue?

 B.R

Dave Chevell Atlassian Team Jul 15, 2020

@johntsai the test you ran will connect to your host system's default SSH port, not Bitbucket's SSH port. Can you re-test like so:

ssh -T -p 7999 git@ourbitbucket.com

Having said that: What happens when you do try to clone? What message do you get?

Cheers,

Dave 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,926 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you