The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

terminal cannot push pull while sourcetree can

shalipoto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2019

Hello everyone,

I have reinstalled sourcetree lately,  setup the ssh keys with our bitbucket server, and can push pull successfully. However I noticed that I cannot push/pull from the terminal because I'm getting public key errors. I have tried the 

ssh-add ~/.ssh/bitbucket_private_key.ppk

command but i get an invalid format error. The keys were generated using the Putty tooling supplied with Sourcetree.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
obogomolov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2019

I guess you should convert the key from puttygen format to OpenSSH format to use it in the ssh-add tool.

shalipoto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2019

Hi Oleg, that did it. I saw that putty can export the private key in  openssh format and that was the first step. I also needed to start the ssh agent with: 

eval $(ssh-agent -s)

only then did the agent accept the new key:

 
ssh-add ~/.ssh/myPrivateOpenSshKey

Thanks again for your suggestion Oleg.

 

Saleem

TAGS
AUG Leaders

Atlassian Community Events