git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Jean-Louis FLOQUET <jese.jlf@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [Question] : git 2.33.1 asks every time password
Date: Thu, 30 Dec 2021 20:35:52 +0000	[thread overview]
Message-ID: <Yc4YKG+taXOuf6Kx@camp.crustytoothpaste.net> (raw)
In-Reply-To: <CAHo1AWxzPsnLuT8JRWovtaRrGvRS8+0NyucU5K8VEnaL1xxW3Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]

On 2021-12-30 at 15:56:12, Jean-Louis FLOQUET wrote:
> 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.

> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  reply	other threads:[~2021-12-30 20:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-30 15:56 [Question] : git 2.33.1 asks every time password Jean-Louis FLOQUET
2021-12-30 20:35 ` brian m. carlson [this message]
2021-12-31  8:47   ` Jean-Louis FLOQUET
2021-12-31 12:55     ` Erik Cervin Edin
2021-12-31 13:04       ` Erik Cervin Edin

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yc4YKG+taXOuf6Kx@camp.crustytoothpaste.net \
    --to=sandals@crustytoothpaste.net \
    --cc=git@vger.kernel.org \
    --cc=jese.jlf@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).