13488

Can't connect to git repo on El Capitan with SourceTree

Question:

I'm using a Mac to host our code, which is set up as a git repository, and performing my push, pull, and so on with SourceTree, on Windows 7. Up until recently, this was working fine, however since updating the OS on the Mac to El Capitan, SourceTree no longer wants to push.

I use public key/private key authentication, and the repo url is of the format:

ssh://user@IPAddress/path

If I try to connect using PuTTy, there is no problem - pageant is running, and seems to be doing its thing.

When I try to push to 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 haven't had any problems previously, and there have been no changes to the set up on the Mac, just the updated OS.

I can't see why I would be able to connect with PuTTy. Any help is greatly appreciated!

Answer1:

I'm solved it by another way.

<ol><li>Stop sshd.<br />sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist</li> <li>Edit /etc/ssh/sshd_config and insert this line.<br />KexAlgorithms diffie-hellman-group1-sha1</li> <li>Restart sshd.<br />sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist</li> </ol>

Answer2:

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

I logged in and ran

xcode-select --install

after which, the push was successful.

I hope this helps someone!

Recommend

  • CUDA Visual profiler over a remote X session
  • Remote access Jupyter notebook from Windows?
  • Use SSHTool to convert Putty Private Key to OpenSSH private key
  • svn ci multiline message log/text file with log message
  • secure way of passing form variable
  • Delphi XE5 Rest Datasnap Server. Getting Client IP Address
  • Git Configuration with eclipse--not able to push code from eclipse to remote git server
  • automate ssh-keygen for github in powershell
  • Update web.config file in asp.net
  • Ansible sudo hangs after 5 tasks
  • Referencing external dependencies in GGTS by convention
  • force insert with spring data jpa
  • Net-ssh session timeout
  • Google cloud datastore emulator init data
  • “git push” doing the same as “git fetch” from the remote
  • `docker cp` doesn't copy file into container
  • Checking whether the server is on/off
  • How to check disabled jobs with Jenkins server?
  • Python Paramiko send CTRL+C to an ssh shell
  • Dynamically switching connect in Modelica
  • Authentication in Play! and RestEasy
  • Check for zero lines output from command over SSH
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Redux Form - Not able to type anything in input
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • Abort upload large uploads after reading headers
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Join two tables and save into third-sql
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • Circular dependency while pushing http interceptor
  • AngularJs get employee from factory
  • How to set the response of a form post action to a iframe source?
  • Change div Background jquery
  • Authorize attributes not working in MVC 4
  • Busy indicator not showing up in wpf window [duplicate]
  • Converting MP3 duration time
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF