Attempting SSH from Sourcetree on laptop to Bitbucket Cloud Server - SSH Terminal errors

Daniel Craun
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!
July 27, 2023

Attempting to setup development station on laptop with Sourcetree (v3.4.14) Git to a Bitbucket Cloud server.  Sourcetree says authentication fine, Clone repo works.  However, SSH cmds via Terminal cannot complete (fails during SSH Step 3 Client Authentication) with error Permission denied (publickey).  How do I configure SSH so that SSH cmds work correctly?  (Followed Atlassian Sourcetree SSH setup instructions).

1 answer

1 accepted

0 votes
Answer accepted
Daniel Craun
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!
August 14, 2023

I am sure that my problem is that there is some kind of space or line feed in the certs.  I thought maybe it is a possibility that the Putty creation process contributes.  I deleted everything for SSH setup, and started over with the cmd line SSH key creation .  The keys created via cmd line are definitely longer ... but copied the keys to where they need to be in Bitbucket and Sourcetree and it works just fine.  Now, Sourcetree works, and cmd line works also!

  1. Open Command Prompt and run the command: ssh-keygen
  2. Skip the step to enter file to save the key by hitting Enter.
  3. Enter a Passphrase.
  4. The SSH key pair will be generated in the .ssh folder.
  5. Rest of steps same as fully documented by Atlassian.
MarkVincent
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!
June 26, 2024

fully documented where? I've been trying for 2 days now to connect Sourcetree to Bitbucket but nothing is working. This page is certainly incomplete: https://support.atlassian.com/bitbucket-cloud/docs/set-up-ssh-with-sourcetree/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events