WeBWorK Main Forum

The unauthenticated git protocol on port 9418 is no longer supported

The unauthenticated git protocol on port 9418 is no longer supported

by Tim Alderson -
Number of replies: 6

Sorry of this is OT, but we are without the IT expertise to handle the following issue, so I am posting here with a hope for a step-by-step if possible.

When I attempted to go through the update process last week I had the following error when invoking

git remote show origin

++++++++++++++++++++++

The unauthenticated git protocol on port 9418 is no longer supported.

Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
+++++++++++++++++++++++

I read through the link provided as well as the following stackoverflow page

https://stackoverflow.com/questions/70663523/the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported

It seems that I should navigate to a particular directory (?) and invoke the following:

git config --global url."git@github.com:".insteadOf git://github.com/

As an amateur I am somewhat nervous about rewriting things whole-scale.

If anyone has gone through this process and is willing to share, it would be most appreciated.

Thanks!

(ww2.16, Ubuntu 20.04)  



In reply to Tim Alderson

Re: The unauthenticated git protocol on port 9418 is no longer supported

by Alex Jordan -

For something similar, I edited the config file in the .git folder to use "https://" in place of each "git://" and things went fine for me from there on out.

In reply to Alex Jordan

Re: The unauthenticated git protocol on port 9418 is no longer supported

by Tim Alderson -

Thank you for the quick reply. Unfortunately the config file already has https in the url.

++++++++++++++++++++

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[branch "release/2.10"]
        remote = .
        merge = refs/heads/master
[remote "origin"]
        url = https://github.com/openwebwork/webwork2.github.com.git
        fetch = +refs/heads/*:refs/remotes/origin/*

+++++++++++++++++++++++

I have also verified I am running Open SSH version 8.2, and my Putty version is 0.76.



In reply to Tim Alderson

Re: The unauthenticated git protocol on port 9418 is no longer supported

by Alex Jordan -

Try changing:

        url = https://github.com/openwebwork/webwork2.github.com.git

to:

        url = https://github.com/openwebwork/webwork2.git

In reply to Alex Jordan

Re: The unauthenticated git protocol on port 9418 is no longer supported

by Tim Alderson -
Thank you for the reply.

I tried the above and still have the same error.
In reply to Tim Alderson

Re: The unauthenticated git protocol on port 9418 is no longer supported

by Alex Jordan -

It is strange that if the protocol has been changed to https that there would be a response saying "the unauthenticated git protocol...". Could some other git config file really be in play here that still has "git://..."? The command line way to change the remote url is "git remote set-url origin https://GitHub.com/openwebwork/webwork2".

In reply to Alex Jordan

Re: The unauthenticated git protocol on port 9418 is no longer supported

by Tim Alderson -
You were right about another git config file.

In /home/manager there was a .gitconfig file with the following line in it:

[url "https://github.com/"]
insteadOf = git://github.com/

Removed that code and all works now.

Thank you for your help.