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

Pushing to Beanstalk fails with sourcetree but not with mac terminal

Peter Mingione January 22, 2018

I can't seen to push any of my beanstalk repos using sourcetree. The same push works fine with terminal (git push Beanstalk master). Here is the error that sourcetree returns: 

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags Beanstalk refs/heads/master:refs/heads/master
Pushing to git@mdeany.git.beanstalkapp.com:/mdeany/tdc-welcome-email.git
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above

 

Notice how is says, "Completed with errors". This is untrue. The push is not successful. My public key seems to be still there.

Help ????

-Pete

 

2 answers

0 votes
Peter Mingione January 30, 2018

Hi Manjunath,

I spoke too soon. Pushing to Beanstalk with SourceTree has stopped working again. I enter this command in terminal: 

ssh-add -l

I get this response:

The agent has no identities.

I tried adding the public key again like this:

ssh-add ~/.ssh/id_rsa.pub

then I am asked for my passphrase:

Enter passphrase for /Users/pm-imac-home/.ssh/id_rsa.pub

But when I enter my computer user password I get:

Bad passphrase, try again for /Users/pm-imac-home/.ssh/id_rsa.pub:

 

Peter Mingione January 30, 2018

Also push is still working from terminal:

git push origin master

I am asked for my passphrase. and here it accepted.

Peter Mingione January 30, 2018

Ah ok. I think I am supposed to add the private key. This works:

ssh-add ~/.ssh/id_rsa

I get the return:

Identity added: /Users/pm-imac-home/.ssh/id_rsa (/Users/pm-imac-home/.ssh/id_rsa)

But the question now is: Why do I continue to have to add the key to ssh-agent every time I restart my computer?

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

That's something that changed in the OS since Sierra. You can read more on how to get it work in Apple's Technical Note - https://developer.apple.com/library/content/technotes/tn2449/_index.html

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

Can you please confirm if the key is added to the ssh-agent? 

You can list all your keys by running this in terminal

ssh-add -l

If none found, please add the key using this command

ssh-add <path_to_key>

 

Thanks!

Peter Mingione January 26, 2018

Thank you ... That fixed the issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events