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

Kaychain password won't work on command prompt IOS

Tony Nov 30, 2017

I am somewhat a newbie to using Apple and I am stymied on their stupid keychain. I am in command prompt and trying to do a 'git pull' with by bitbucket account. I then get a prompt that says 'Password for 'https://myemail@bitbucket.org':  and there is a little key icon next to it.

Nothing I do with the key icon works. I am not allowed to enter a password at all. If I just hit enter (assuming the Keychain will fill in the correct password), I get the following:

remote:Empty password

Fatal:Authentication failed for 'https://myemail@bitbucket.org/file_I_orginally set up

What am I doing wrong?

1 answer

0 votes
Gonchik Tsymzhitov Community Leader Nov 30, 2017

Hi Tony, 

 

Could you follow this instruction

https://blog.elao.com/en/tech/ssh-agent-does-not-automatically-load-passphrases-on-the-osx-sierra-keychain/

 

 

In fact, better way is use ssh key. 

Just upload your public key to bitbucket. 

Hence you can clone under ssh protocol.

Please, use doc:

https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html#SetupanSSHkey-Step3.AddthepublickeytoyourBitbucketsettings

 

 

Hope it helps. 

 

 

Cheers,

Gonchik Tsymzhitov

Tony Dec 03, 2017

Great directions. I established the SSH key with bitbucket. Problem now is the Microsoft keychain- If I pull up keychain and find the bitbucket access, which password am I putting in there?  The public key that I generated in the terminal?

Tony Dec 03, 2017

When I put the public key for bitbucket into my IOS keychain, then go to the terminal and do a 'git push', I still get a password request with a little key icon in terminal. When I hit 'enter', I get 

remote: Empty password

fatal:Authentication failed for 'http://xxxx@bitbucket.org/other file-stuff.git/'

What am I missing for the SSH access and IOS Keychain?

Jim Redmond Atlassian Team Dec 04, 2017

You're asking about SSH access but providing details on an HTTP failure. You'll either need to update your remote to use SSH (`git remote set-url origin git@bitbucket.org:owner/repo.git`) or fix your HTTPS URL (as found on the repo overview page; should be something like `https://username@bitbucket.org/owner/repo.git` where "username" is *not* the same as your email address).

It's also possible that, since you're providing an HTTP address and not an HTTPS one, Bitbucket is redirecting you, but your git client is misinterpreting the redirection as a failure. Better to copy and paste the URL from the repo overview, since it will be formatted properly.

Tony Dec 04, 2017

Thanks that worked in part.

I went in and did 'git push https/username@bitbucket.org/owner/repo.git'

Then the pesky password was requested. I am use to typing the password in directly in the terminal on PC's, but I am now using a Mac. On the mac the PW is requested, it just shows a little key icon. What I did this time was click on the icon and type the password. When you do this you do not see what you are typing so its a matter of faith that your are typing the password and the Mac is receiving it. After typing the password and not expecting anything I hit 'enter' and that did the trick. A note to the newbien who is using a late 2017 Macbook- Apparently when you type the password in terminal on a Mac, It doesn't look like you are typing anything but you are. Just type the PW and hit enter 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,030 views 1 20
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