Unable to connect to git repo on El Capitan using SourceTree

I use a Mac to host our code, which is configured as a git repository, and does my push, pull, etc. with SourceTree on Windows 7. Until recently, this worked fine, however, starting with the Mac OS upgrade to El Capitan, SourceTree no longer wants to click.

I am using public key / private key authentication, and the repo url is in the format:

Ssh: // user @ ipaddress / path

If I try to connect using PuTTy, there is no problem - the on-screen work is working and seems to be doing its job.

When I try to click on the repo in SourceTree, it tries for a couple of minutes, and then I get the following error:

FATAL ERROR: Server unexpectedly closed network connection fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

I had no problems before, and there were no changes to the setup on the Mac, just an updated OS.

I do not understand why I could contact PuTTy. Any help is much appreciated!

0
source share
2 answers

I needed to reinstall the Xcode developer tools on the Mac Mini.

I logged in and ran

 xcode-select --install 

after which the click was successful.

Hope this helps someone!

+1
source

I decided it differently.

  • Stop sshd.
    sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
  • Modify /etc/ssh/sshd_config and insert this line.
    KexAlgorithms diffie-hellman-group1-sha1
  • Rebooting sshd.
    sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
+2
source

Source: https://habr.com/ru/post/1234665/


All Articles