When I invoke Fetch, I'm getting following error:
RSA host key for IP address '184.108.40.206' not in list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly
I don't have any problems accessing this repository using SmartGit.
Please check your ~/.ssh/known_hosts file. Is there an entry for it already? If so, it may be wrong, try deleting it and trying again.
I don't know why this would behave differently outside of SourceTree, unless the other apps are deliberately ignoring known_host fingerprint clashes, which is insecure.
SSH automatically uses your private keys in ~/.ssh, there's absolutely no need for SourceTree to prompt for that - SmartGit only does because it's Java, which runs on platforms which don't support SSH natively, e.g. Windows. On the Mac, your SSH configuration is system-wide.
You don't have to be using the command-line to have your SSH keys in ~/.ssh, that's where Mac OS X puts them for *all* uses of SSH. Perhaps you've just become used to using non-native or Windows-style tools.
You should put your SSH keys in ~/.ssh, that's where they belong. SourceTree provides no facility to locate them anywhere else, because that's not how Mac OS X works. Literally every other native tool on Mac OS X will expect the SSH keys and data files to be in this location, it really doesn't make sense for you to keep them anywhere else.
Also about the passphrase, if you use SSH as Mac OS X intends then you will never need to tell SourceTree the passphrase, which is how it should be. Mac OS X will prompt you for the passphrase when it needs it, which will persist for the rest of your Mac OS X session. You can also opt to have that passphrase saved in your Keychain for future sessions if you want. This is far more secure than typing the passphrase into a 3rd party application.
Steve, I appreciate your explaination of how SSH usually is handled on OS X, but this does not solve my problem. Could you please explain me how I can get SourceTree working with a given private key file? What steps I need to "import" my private key file to OS X so SourceTree automatically uses it? Thanks in advance.
The normal way to set up a private key is like this: http://confluence.atlassian.com/display/BITBUCKET/Using+SSH+to+Access+your+Bitbucket+Repository
To import a key from elsewhere, you should be able to copy your private key file to ~/.ssh/id_rsa:
cp your_private_key_location ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
I do intend to add some helpers for SSH in future, but most people using SSH keys on OS X already have already gone through the native key generation process so don't need to do this.
Hmm, that suggests you've generated a private key already at some point. If you don't know where the public key for this one is it's probably best just to rename it, I don't think appending works. It's possible to add more than one key but you need to mess with your login configuation to do so, if you don't know what this key is there's probably no point.
Every team in the world is unique, and so Atlassian believes that each and every team's best way of working needs to be molded to their unique circumstances – ...
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!
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot