Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree 3.4.8 (Windows) Can't Push/Pull with SSH-based Repository

gougmcgrath
Contributor
March 16, 2022

Beginning with the SourceTree 3.4.8 (Windows) update, I can no longer push or pull. Everything else seems to work, but I'm having to use the git command line for push/pull. The error message is (personal info replaced with asterisks):

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v origin develop:develop
Pushing to ssh://***
fatal: protocol error: bad line length character: ***
Completed with errors, see above.

Is there a workaround for this until the bug gets fixed?

Thank you.

 

5 answers

2 accepted

2 votes
Answer accepted
dasvo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2022

It seems that the problem is the new Putty version 0.76.

I replaced the integrated putty (just the putty folder - version 0.76) by the one from the previous version 3.4.7 (0.70.2-Sourcetree) and it works as before.

The putty folder is in (C:\Users\<user>\AppData\Local\SourceTree\app-3.4.8\tools\putty - or your user folder).

Is it possible that the official putty version is missing some fixes done by Atlassian ?

Neo Anderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2022

Thx. That solved my problem as well.
To be honest I was running on version 3.4.6 and from one to another day I wasn't able to work with my gitserver via ssh.
Then - as the last hope - I did an update to 3.4.8 - nothing changed.

I was already despaired I searched on the net again and found this entry. 
I copied putty from 3.4.6 into 3.4.8 - I didn't expected that it helps - but it did.

From my perspektiv this issue must caused by another reason. My gues was to check the windows updates - but there weren't any updates done in the relevant time frame.

Amasing.

gougmcgrath
Contributor
June 6, 2022

I finally tried this, and it worked for me as well. Also, the Putty problem persists in SourceTree 3.4.9. Sigh.

1 vote
Answer accepted
Luca
Contributor
March 17, 2022

Hi,
as discussed in another post here, solution seems to be temporary downgrade to version 3.4.7.

0 votes
Alexander Sorkin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2023

The problem component is plink.exe (part of Putty), bundled with Sourcetree.

Sourcetree 3.4.7 has plink.exe version "0.70.2-sourcetree" compiled specially for the Sourcetree project, but more recent versions have common plink.exe from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html.

The workaround is the following:

  • Download Sourcetree for Windows 3.4.7 from the https://www.sourcetreeapp.com/download-archives  
  • Install it and copy file plink.exe from the program's directory: C:\Users{yourname}\AppData\Local\SourceTree\app-3.4.7\tools\putty\plink.exe to a temporary place, for example, C:\temp
  • Install the newest version of Sourcetree for Windows (currently it's 3.4.14)
    Replace plink.exe with the saved version of plink.exe
  • Enjoy working latest Sourcetree

I hope the Sourcetree team will fix this bug in future releases.

0 votes
Andreas Törner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2023

I'm using SourceTree 3.4.11 and had the exact same issue. I resolved it as stated above by replacing the putty folder by the one included with 3.4.7!

0 votes
Gopi Tholeti March 16, 2022
gougmcgrath
Contributor
March 18, 2022

I'm not using Bitbucket, so I don't believe this will help, but thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events