not able to clone branches fro bit bucket ...asking password Edited

1. I generated pub,private keys using  command : ssh-keygen -t rsa -b 4096 

on my unix server

2. Then copied the contents of .pub file to butbucket ssh-keys section

3. Then tried to clone the repository on this unix server by issueing below commands

      eval `ssh-agent`

      ssh-add  id_rsa

   Identity added: id_rsa

git clone   git@bitbucketserver.org:username/repo.git

git@bitbucketserver.org's password: 

 

But it is asking for password?

The unix server username is different from my bit bucket user name.As Unix user is a common user(ec2-user)  which is used by all users.While bit bucket user is individual for each user.Can it be a issue.

Please let me know what am I missing.

1 answer

0 vote

I'm going to assume based on your question here that you're using Bitbucket Server. Do you have port forwarding enabled? Is there a specific port that Bitbucket SSH is listening on other than the SSH-default port 22?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,212 views 26 11
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you