Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Added SSH key but still ask for password

Edited

Hey,

 

I have added the ssh successfully as per the instructions and got this message 

ssh -T myusernane@bitbucket.org
logged in as myusername.

You can use git or hg to connect to Bitbucket. Shell access is disabled.




But when I use the git pull command, still asks me for a password.
How to solve this problem?


1 answer

Hi Moby,

Welcome to the Atlassian Community.

Did you also change the remote URL for your repository to use SSH instead of HTTP/HTTPS?

You can use the command git remote set-url to change it.

Thanks for answer  but I'm not sure which url to set? 

Mikael Sandberg Community Leader May 09, 2019

You can check the URL used for your repository by running git remote -v, this will list the remote URLs:

$ git remote -v
Bitbucket.org https://username@bitbucket.org/username/repository.git (fetch)
Bitbucket.org https://username@bitbucket.org/username/repository.git (push)

If the URL looks like in the above example then you are not using SSH. Also note that if you have a passphrase for your SSH Key, you will be asked to enter that every time.

Like # people like this

great! this really helped! <3

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,440 views 4 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