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?

Thanks!


2 answers

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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
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...

570 views 1 2
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