Sourcetree Ssh Mac



  1. タイトルの通り, MacでSourceTreeを使いGithubに接続するまでを備忘録的にまとめておきます. SourceTreeを準備する(アカウントを作る&クライアントをインストール) SSHの準備をする SourceTreeとGithubをSSH.
  2. On Mac OSX, the native SSH client can use the built-in keychain directly. To add your private key to the keychain simply use the command: ssh-add -K /path/of/private/key As an example if your private key is stored at /.ssh and is named idrsa, you would use the command: ssh-add -K /.ssh/idrsa.

(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.

OAuth Support and SSH Key Generation By Kelvin Yap on February 10, 2017. Connect to your Bitbucket or GitHub accounts securely and with ease in the latest versions of SourceTree for Windows and Mac. For Sourcetree on MacOS I had to change from OAuth to Basic authentication, use 'git' as the username (not my GitHub username), and generate the SSH key and input it into GitHub.Only then could I clone a GitHub repo via SSH in Sourcetree.

Ssh Mac Osx

2. Pick “Create or Import SSH Keys” under “Tools” tab.

Ssh

3. Keep default settings on new window and select “Generate” and follow instructions to generate SSH key pair.

4. Save both the public and private key.

OAuth Support and SSH Key Generation By Kelvin Yap on February 10, 2017. Connect to your Bitbucket or GitHub accounts securely and with ease in the latest versions of SourceTree for Windows and Mac. These versions of SourceTree fully support OAuth 2.0. Users with Two-Factor Authentication (2FA) enabled can connect to both services via OAuth.

5. Open your system tray and select Pageant (the icon of a computer wearing a fedora).

Sourcetree mac ssh key

6. Click “Add Key” and select the private key you generated.

7. If the repository you want to clone is on an online hosting service, then copy public key and add to your site profile.

Clone Repository:

1. Pick “Clone / New” under “File” tab.

Ssh

2. Copy SSH clone URL from repository to the line “Source Path / URL”.

Sourcetree Ssh Mac Os

3. Select desired Destination Path and Name.

4. Click “Clone”.

Cyberduck Mac

5. You’re done! The repo may take a while to clone, so a bit of patience is required.