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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events