From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Abraham Zsombor Nagy <abrahamzsombornagy@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Unable to push to git server
Date: Fri, 5 Jul 2024 01:50:03 +0000 [thread overview]
Message-ID: <ZodRSw9LEwLa_nOG@tapette.crustytoothpaste.net> (raw)
In-Reply-To: <CANoqcKYwgA5sT0fAgSp4atpuPOaUSDALRVcf9XoajOe0g6xibQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1984 bytes --]
On 2024-07-04 at 13:56:15, Abraham Zsombor Nagy wrote:
> Hello Git Team,
>
> I hope you can help me.
>
> I'm trying to push my code to GitHub, however I'm unable to do so:
>
> abris@dell:~/Projects/maradandohalo/server$ git push --set-upstream origin main
> Username for 'https://github.com': nazsombor
> Password for 'https://nazsombor@github.com':
> fatal: protocol error: bad line length 175
> send-pack: unexpected disconnect while reading sideband packet
> error: failed to push some refs to
> 'https://github.com/nazsombor/maradandohalo.git'
> Enumerating objects: 31, done.
> Counting objects: 100% (31/31), done.
> Delta compression using up to 16 threads
> Compressing objects: 100% (22/22), done.
>
> I use Debian 12. I tried this with the git installed via apt as well
> with the git compiled from source code. Git version: 2.45.GIT
>
> I also asked this question first on StackOverflow:
> https://stackoverflow.com/questions/78670914/git-fatal-protocol-error-bad-line-length-173
I know you've got this working with SSH, but I'll just mention that
usually this message "protocol error: bad line length" means that you
have some sort of proxy (such as an antivirus or a TLS-intercepting
device) that's tampering with the data. TLS, which is the protocol used
for encryption on HTTPS URLs, has built-in mechanisms to detect any sort
of accidental or intentional modification of the data, so if we assume
that both your version of Git and GitHub sent valid protocol data, then
this means that if it came out bad on the other side, it was tampered
with in the middle by something that can decrypt the data (which would
have to be something trusted by your machine).
That's why SSH works for you: because the types of proxies that
typically know how to process HTTPS data don't know how to decrypt or
intercept SSH connections, so your data doesn't get corrupted.
--
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2024-07-05 1:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 13:56 Unable to push to git server Abraham Zsombor Nagy
2024-07-04 14:33 ` rsbecker
[not found] ` <CANoqcKZtOwghKGaUBfS_JnL4mBKsD9+=S1EX8J=rtVW4OUqjOQ@mail.gmail.com>
[not found] ` <08ee01dace25$b87cf640$2976e2c0$@nexbridge.com>
[not found] ` <CANoqcKZ8ABFQrfakK0MRbrgf-ipm4mPGHkvpFQ_Kg_mmn+F_JQ@mail.gmail.com>
[not found] ` <08f101dace2e$adadffd0$0909ff70$@nexbridge.com>
[not found] ` <CANoqcKasK6UOqa8YNKkqR+ZmizbMwP+Q9j0Yiid-mrUuXHQeew@mail.gmail.com>
2024-07-04 16:33 ` rsbecker
2024-07-04 17:02 ` Abraham Zsombor Nagy
2024-07-05 1:50 ` brian m. carlson [this message]
2024-07-05 9:07 ` Abraham Zsombor Nagy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZodRSw9LEwLa_nOG@tapette.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=abrahamzsombornagy@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).