git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [Question] : git 2.33.1 asks every time password

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 30, 2021, 20:35 UTC
Message-ID
<Yc4YKG+taXOuf6Kx@camp.crustytoothpaste.net>
In-Reply-To
<CAHo1AWxzPsnLuT8JRWovtaRrGvRS8+0NyucU5K8VEnaL1xxW3Q@mail.gmail.com>
On 2021-12-30 at 15:56:12, Jean-Louis FLOQUET wrote:
Show 13 quoted lines
> Hi,
> 
> I use some scripts to do some batch operations (pull / push), using
> rsa key and ssh-agent / ssh-add. I'm under Windows 10 (with all
> updates).
> When launching my script (see below, truncated : more than 100 repo),
> I have to enter rsa passphrase (OK) then all push/pull are done
> without any user interaction (no passphrase, no password, nothing)
> All Git versions up to 2.33.0.2 are working fine, but since 2.33.1,
> git asks every time the password.
> I had to create a 'config' file within '.ssh' directory to support my
> rsa key (too old format ?). Instructions according to
> https://stackoverflow.com/questions/35233777/git-error-unable-to-negotiate-with-xx-xx-xxx-xxx-no-matching-host-key-type-fo

If you're seeing this problem, then the system to which you're connecting is insecurely configured and using obsolete cryptography. You should inform the maintainers of that system of that fact and ask them to fix it.

Show 6 quoted lines
> I also have seen that some people have to add 'ssh-add -K', but it
> seems to be only for MacOS.
> According to release notes for 2.33.1, Git Credential Manager for
> Windows has been replaced by Git Credential Manager Core, but I don't
> know if it is the "root" problem, and if yes, how to fix my issue.
> I would greatly appreciate any help / solution. Thanks in advance.

You should run "ssh -vvv SERVER", where SERVER is the server to which you're connecting (e.g., git@github.com or whatever) and see what the output prints. That should tell you why it's falling back to a password-based configuration.

Note that credential managers are only used for HTTP and HTTPS credentials and not for SSH, which is separate.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Jean-Louis FLOQUETNext: Jean-Louis FLOQUET
Message 2 of 5 in “[Question] : git 2.33.1 asks every time password”
  1. Jean-Louis FLOQUETDec 30, 2021
  2. brian m. carlsonDec 30, 2021
  3. Jean-Louis FLOQUETDec 31, 2021
  4. Erik Cervin EdinDec 31, 2021
  5. Erik Cervin EdinDec 31, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.