Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git extensions pull error info: fatal: protocol error: bad line length character: git@

Tags:

git

When I used git extensions on windows to pull a repo, a error info: "fatal: protocol error: bad line length character: git@" was return.

Meanwhile I can use git command line "git pull origin" to pull the repo. It seems there was something wrong with git extensions configuration, anyone can help me correct this error?

like image 313
Peter Hu Avatar asked Oct 05 '16 20:10

Peter Hu


2 Answers

Set your Git Extensions ssh client to be "OpenSSH" instead of "PuTTy".

You can configure it under: Tools -> Settings -> Git Extensions -> SSH -> "Specify which SSH client to use":

enter image description here

like image 103
Nir Avatar answered Nov 15 '22 00:11

Nir


The other possible solution is if you use Putty Pageant, and you have your keys stored in Pageant to handle the authentication, check that Pageant is running. If you have restarted your machine Pageant might not be running and the authentication will fail with this error. If you restart your Pageant and make sure that your Keys are added this will fix your error.

like image 20
Mark Morrill Avatar answered Nov 14 '22 23:11

Mark Morrill