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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,369
Community Members
 
Community Events
175
Community Groups

Can pull from repo, but cannot push. "fatal: protocol error: bad line length character: auth"

Hello.

I created a repository in bitbucket cloud and added my ssh key to my user profile.

 

I am able to successfully clone the repository and pull down new changes. But whenever I push, I am met with the following error:
"fatal: protocol error: bad line length character: auth"

 

I am using Git Bash for Windows. git --version returns "git version 2.35.1.windows.2"

So far I have tried removing and recreating ssh keys, testing my connection to bitbucket cloud, restarting my PC, deleting the whole repository in bitbucket and recreating it, and forcing ssh to use the identity file. Nothing seems to work.

 

I was able to pull AND push from an ec2 instance with no issues. I suspect it might be a bug with git for windows.

 

I'm at my wits end and can't find any solutions from google that actually work on my machine. Anyone have any ideas to solve this?

1 answer

0 votes
Ben Atlassian Team Mar 13, 2022

Hey Justin!

  • Is the issue happening only with this repository?
  • Are you authenticating through SSH or HTTPS?
  • Does the push work using other authentication methods? (i.e.: SSH if you are using HTTPS, HTTPS if you are using SSH)
  • Please send us the output of the verbose push command as given below:
    If you are using Linux
    GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push

    If you are using Windows
    set GIT_TRACE_PACKET=1

    set GIT_TRACE=1

    set GIT_CURL_VERBOSE=1

    git push

Cheers!

- Ben (Bitbucket Cloud Support) 

@Justin Alcorn, did you ever get this resolved? I'm having the exact same issue.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events