Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Password Required to Push on SourceTree

Patrick Tchakounte February 19, 2018
I set up an SSH key and I still get a password required message box whenever I try to push to Bitbucket from SourceTree. I am using MacOS Sierra 10.13.3.

2 answers

0 votes
Patrick Tchakounte February 20, 2018

I get the following message:

 

"Password Required

For user LaPlume on host bitbucket.org"

0 votes
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2018

Please check if the ssh-agent has your keys loaded. If not, please add them to the agent. 

Run below commands in terminal to do so,

To check if keys are loaded:

ssh-add -l

To add keys to agent:

ssh-add <path_to_key>

more like,

ssh-add ~/.ssh/id_rsa

Key in the passphrase used while generating the ssh key and you should be good to go.

Patrick Tchakounte February 20, 2018

I tried to check if keys are loaded and the response was that 

"The agent has no identities." How do I solve the problem?

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2018

Locate your ssh key on the disk. If you have used the default location, it should be located at ~/.ssh/ Use the file name for the key and add it to the ssh-agent with below command,

ssh-add ~/.ssh/<ssh_key_file_name>
Patrick Tchakounte February 20, 2018

The name of the file of the public key is id_rsa.pub but I get a syntax error with the following code:

ssh-add ~/.ssh/<id_rsa.pub>
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2018

You should do this,

ssh-add ~/.ssh/id_rsa
Patrick Tchakounte February 20, 2018

The command worked. It stated: "identity added".

What else do I do?

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2018

Assuming that you have added the key on Bitbucket, you should now be able to push to Bitbucket from Sourcetree without a password prompt. 

Patrick Tchakounte February 20, 2018

I am still asked for a password.

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2018

Can you please attach a screenshot of the account setup and the password prompt window?

Patrick Tchakounte February 20, 2018

Which account setup? Bitbucket?

Patrick Tchakounte February 20, 2018

For some reason, my MacOS Sierra 10.13.3 won't take screenshots.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events