pointing to SSH Key on a Mac

When using SourceTree, the developers I am working with are on a PC and I am on a Mac.  They tell me to follow these steps:

Tools -> Options -> Look for "SSH Key" and change that to look at your
id_rsa file that you created earlier in your home directory under .ssh

But on a Mac, I am not seeing the same menu options or ability for SSH Client Configuration - what to do?


2 answers

This widget could not be displayed.

Basically you can create a key pair by using ssh-keygen command from your terminal. Your key should generated under /Users/username/.ssh/id_rsa. 

You can even do a copy of the key from that location to your desktop using cp commands from terminal.

This widget could not be displayed.

You don't need to do anything special to setup SSH keys on a Mac because, unlike Windows, they are supported natively by the OS.  Just create the SSH key from the command line if you haven't already (following the steps Nirmal set out) and then go into that .ssh directory to find the public key file.  Copy the contents of that key file onto your clipboard and then paste them wherever you need them (such as your user profile on Stash/Bitbucket)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

862 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you