Sourcetree Mac Ssh Key



(Note: These are the steps for a Windows installation of SourceTree. Not sure if there are differences for a Mac installation.)

  1. Ssh user@host git init -bare /path/to/repo.git. Be sure to use a valid SSH username for user, the domain or IP address of your server for host, and the location where you'd like to store your repo for /path/to/repo.git. Note that the.git extension is conventionally appended to the repository name to indicate that it’s a bare repository.
  2. ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxx. Google之后明白,文件夹内少了一个knownhosts文件,本来密钥文件应该是三个,现在只有两个,便报了这样的错误,此时输入yes回车之后,生成了缺少了的knownhosts文件,便可解决这个问题: ```.

Sourcetree Mac Ssh Keys

Create SSH keys using PuTTYgen (note: this is a separate utility to PuTTY) Select key type from bottom (e.g. Click 'generate' and follow on screen instructions to move mouse (makes key random). You will now have a public and private key generated.

Generate/Load SSH Keys:

Sourcetree Mac Ssh Key

1. Open SourceTree.

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

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.

Bitbucket Create Ssh Key

Sourcetree Mac Ssh Key

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

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.

Sourcetree Mac Generate Ssh Key

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

3. Select desired Destination Path and Name.

4. Click “Clone”.

Sourcetree Mac Ssh Key Not Found

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