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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

676 views 0 4
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