17.12.2020

Sourcetree Generate Ssh Key Mac

40
  • Status:Closed(View Workflow)
  • Resolution: Duplicate
  • Fix Version/s: None
  • Labels:
  • Environment:

    Mac OS X Sierra desktop

    Bitbucket Server

    Sourcetree 2.4 (and the Beta has this problem too)

Please watch my short video illustrating the experience.
https://www.youtube.com/watch?v=wPUAkG78BFE&feature=youtu.be

Scenario 1:

I use SourceTree + BitBucket combination with SSH setup on my Mac. It used to work fine. Haven't used this Mac to code for a while. Today I tried to do fetch / push, all failed with this permission denied (public key) issue. Jan 26, 2017  allowed SourceTree to generate the keys deleted the newly generated key files right away (in my case /.ssh/jacobandersen-Bitbucket and /.ssh/jacobandersen-Bitbucket.pub) and made copies of the correct key files (in my case /.ssh/idrsa and /.ssh. Steps for Cloning a Repository in SourceTree (Note: These are the steps for a Windows installation of SourceTree. Not sure if there are differences for a Mac installation.) Generate/Load SSH Keys: 1. Open SourceTree. Pick “Create or Import SSH Keys” under “Tools” tab.

An SSH key consists of a pair of files. One is the private key, which you should never give to anyone. No one will ever ask you for it and if so, simply ignore them - they are trying to steal it. The other is the public key. When you generate your keys, you will use ssh-keygen to store the keys in a safe location so you can authenticate with. From Sourcetree, open the PuTTY Key Generator dialog by going to Tools Create or Import SSH Keys. Click Load, navigate to your SSH folder, and click the private key. Enter your passphrase for the SSH key and click OK.

  1. 3) Added the SSH key to GitLab using cat idrsa.pub to print my public key. 4) Added the public key to SourceTree by 'Tools Add SSH key' followed by the password ('Tools options SSH client configuration' I've selected OpenSSH). After these steps I'm able to push and pull code. However, each time I restart SourceTree a terminal pops-up.
  2. Sourcetree is failing to connect to bitbucket with SSH keys, seems like an issue with pageant. After disable of SSH everything is OK. Same account and configuration is OK in Win7.

On MacOS X Sierra when setting up SourceTree for first time and choosing 'SSH' as the authentication method, SourceTree:

  1. Should not have a URL for the Bitbucket server, should be a hostname without the https://
  2. Should not need a 'password'
  3. Generate SSH Key button is greyed out
  4. User can skip setup and perform this step manually through the Remote Repository Browser's 'Add Account' function

Scenario 2

On MacOS X Sierra when using the 'Add Account' function the experience when selecting SSH as the authentication method is:

  1. URL is asked for, should be a hostname
  2. Password is not needed
  3. User should be able to select an existing ssh key on their system
  4. Generate Key button is visible and clickable, when clicked, process continues, but no key is generated and a 'Tooltip' is displayed when account is saved indicating no SSH key
  5. When editing the account, and selecting 'Generate Key' it now works (but generates a public/private key with a 'space' in the filename (e.g. mwilde_Bitbucket Server.pub)

After putting my public key in my account on Bitbucket and trying to clone, errors are related to what is in the '.ssh/config' file this occurs.

  1. No hostname is in the '.ssh/config' file (edited by SourceTree) causing a failure on clone
  2. When hostname is added, errors occur due to 'space' in filename
  3. When '.ssh/config' is edited removing spaces and subsequently renaming the private key to match the reference in the '.ssh/config' file

After 'fixing' all of these issues, cloning only works thru the CLI, or via a 'Clone in SourceTree' link up in Bitbucket Server. Cloning does not work through the remote repository browser.

Ssh Key Generator Mac

Please watch my short video illustrating the experience.
https://www.youtube.com/watch?v=wPUAkG78BFE&feature=youtu.be

Note: I have a few hundred people in my company i'd like to train on SourceTree (and have them use SSH keys if possible), so please fix this ASAP.

is cloned from

SRCTREE-4500Generating SSH Keys is broken (using Bitbucket Server) -- ui and config file

  • Closed
is duplicated by

Adobe photoshop cs2 key generator download. SRCTREE-4505Generating SSH Keys is broken (using Bitbucket Server) -- ui and config file

  • Closed
Assignee:
Brian Ganninger (Inactive)
Reporter:
jamie goodwin

Generate Ssh Key Putty

Ssh key generator mac

Generate Ssh Key Windows

Votes:
0Vote for this issue
Watchers:
1Start watching this issue