17.12.2020»»четверг

Sourcetree Generate Ssh Key Mac

17.12.2020
Sourcetree Generate Ssh Key Mac Average ratng: 7,0/10 3287 reviews
  • Status:Needs Triage(View Workflow)
  • Resolution: Unresolved
  • Fix Version/s: None
  • Labels:
  • Environment:
  1. Sourcetree Generate Ssh Key Mac Download
  2. Generate An Ssh Key Linux

First issue..

SiteGround uses key pairs for SSH authentication purposes, as opposed to plain username and password. More information on SSH keys is available here. You can generate an SSH key pair in Mac OS following these steps: Open up the Terminal by going to Applications - Utilities - Terminal In the terminal. Here is what i found Go to ToolsOptionsGeneral Tabput your ssh private key with.ppk extensionthen go into system next with battery in widowsclick on paegent with blue mark computer and hatenter you.ppk key Enter passclose it. Now You can push or clone project. If this does not goes well try restart oc and sourcetree. Basically you can create a key pair by using ssh-keygen command from your terminal. Your key should generated under /Users/username/.ssh/idrsa. You can even do a copy of the key from that location to your desktop using cp commands from terminal. Source Tree SSH Public Key Denied. Because you don't have SSH key at all @ /.ssh/iddsa.To generate SSH key. I can add custom SSH keys to SourceTree in Mac? I am using the latest SourceTree for Mac (v 2.5.3 116). I use SSH keys to authenticate with GitHub and Bitbucket. Every time after I restart my workstation, SourceTree no longer sees my repos from either service as valid. I get the following error: 'This is not a valid source path / URL.'

/user-key-generator-for-master-keying.html. I set up a remote account to GitHub using OAuth and SSH. I created a new SSH key and enabled the checkbox to allow SourceTree to modify my SSH configuration.

When I attempted to Clone a repo, the clone window opened but there was an Error message of 'This is not a valid source path / URL'. Clicking on the message shows the connection log with the following.

/firebase-auto-generated-new-api-key.html. /Users/USERNAME/.ssh/config: line 97: Bad configuration option: usekeychain
/Users/USERNAME/.ssh/config: terminating, 1 bad configuration options
fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.

I opened /Users/USERNAME/.ssh/config file and found the following new entry
# — SourceTree Generated ---
Host InsomniacSoftware-GitHub
HostName github.com
User InsomniacSoftware
PreferredAuthentications publickey
IdentityFile /Users/USERNAME/.ssh/InsomniacSoftware-GitHub
UseKeychain yes
AddKeysToAgent yes
# ----------------------------

Sourcetree Generate Ssh Key Mac Download

Commented out the UseKeychain line and saved. Back in SourceTree, clicked on the Clone link and it successfully logged into GitHub.

After some testing, I discovered the error is due to using a non-Apple version of ssh that doesn't support the UseKeychain option. I have installed OpenSSH_7.5p1 (OpenSSL 1.0.2l 25 May 2017) via Homebrew at /usr/local/bin/ssh. This is the version SourceTree is using since it is the first in $PATH.

To make it work with either version of ssh, at the top of the ~/.ssh/config file, add the following lines

Host *

IgnoreUnknown UseKeychain

This will cause non-Apple versions of ssh to ignore the UseKeychain option.

Second issue..

My system-wide ssh config file enables StrictHostKeyChecking by default (enforced by IT/Security department). SourceTree is unable to connect (Permission denied (publickey)) unless I create a 'Host github.com' entry in my personal ssh config file that disables StrictHostKeyChecking or points to a Known Hosts file that already contains github.com's public key.

Note: Adding these options to the SourceTree-Generated lines does not work as ssh isn't actually using those options (Host doesn't match, User should always be git, etc). SRCTREE-4631 discusses this a bit.

So that a user doesn't have to create a 'Host github.com' entry, SourceTree should always call git with the GIT_SSH_COMMAND variable setting these options, like this.

GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentityFile=/Users/USERNAME/.ssh/STGENERATEDKEY' git clone git@github.com ..

Now for the request.

When I was setting up the GitHub account, the SSH Key line was showing the default id_rsa.pub key. Clicking on the Copy To Clipboard button would bring up the Generate SSH Key dialog. The icon said to hold down Option key to generate a new key but the Generate SSH Key dialog would appear whether I was holding down Option or not, so it couldn't use my id_rsa key either. I generated a new SSH key which SourceTree saved as InsomniacSoftware-GitHub[.pub].

However, I already have a SSH key uploaded to GitHub that I'm using for other git applications, which is different from the default id_rsa.pub key. Unfortunately there is no way in the dialog window to tell SourceTree to select a different key.

Request: Allow the user to pick an existing key instead of forcing them to generate a new key.

Generate An Ssh Key Linux

Votes:
0Vote for this issue
Watchers:
2Start watching this issue