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.
I guess you should convert the key from puttygen format to OpenSSH format to use it in the ssh-add tool.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.