From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D031C54E4B for ; Tue, 12 May 2020 05:43:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 47C1520736 for ; Tue, 12 May 2020 05:43:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728111AbgELFnE convert rfc822-to-8bit (ORCPT ); Tue, 12 May 2020 01:43:04 -0400 Received: from mx1.uni-regensburg.de ([194.94.157.146]:43352 "EHLO mx1.uni-regensburg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgELFnE (ORCPT ); Tue, 12 May 2020 01:43:04 -0400 X-Greylist: delayed 54194 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 May 2020 01:43:03 EDT Received: from mx1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 7C78D600004E for ; Tue, 12 May 2020 07:43:01 +0200 (CEST) Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx1.uni-regensburg.de (Postfix) with ESMTP id 5B94F600004D for ; Tue, 12 May 2020 07:43:01 +0200 (CEST) Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Tue, 12 May 2020 07:43:01 +0200 Message-Id: <5EBA3763020000A100038EED@gwsmtp.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 18.2.1 Date: Tue, 12 May 2020 07:42:59 +0200 From: "Ulrich Windl" To: Cc: Subject: Antw: [EXT] Re: Improving git's password prompt References: <5EB963AF020000A100038ECE@gwsmtp.uni-regensburg.de> <14266_1589211256_5EB97078_14266_88_1_20200511153416.GB1415@coredump.intra.peff.net> In-Reply-To: <14266_1589211256_5EB97078_14266_88_1_20200511153416.GB1415@coredump.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org >>> Jeff King schrieb am 11.05.2020 um 17:34 in Nachricht <14266_1589211256_5EB97078_14266_88_1_20200511153416.GB1415@coredump.intra.peff. et>: > On Mon, May 11, 2020 at 04:39:43PM +0200, Ulrich Windl wrote: > >> I'm aware that most repositories use "open HTTP" or SSH public key >> authentication, but for the few cases where SSH with password is being >> used, there is a minor probem like this: >> --- >> tester@host:~/iredir> git fetch >> Password: >> --- >> >> Now if you are working busily with the project you probably know where >> the repository came from, what the username and password is, but if >> you haven't worked with the repository for a while, it might be >> helpful to see the username and host (the part up to ':' in the >> display of "git remote -v", e.g.: "windl@server") with the password >> prompt to select the correct password. >> >> So my proposal would be "Password for user@host:" instead of just >> "Password:". >> >> Problem seen in git 2.26.1... > > That prompt is generated by ssh, not by git. Any git prompts do say > "Password for user@host" or similar (e.g., what you see for http > authentication). > > The best we can do is print "Connecting via ssh to host..." or similar > before running ssh, which would give more context to the "Password" > prompt. But would probably be annoying for people using key > authentication (and we can't know which, because that decision is made > internally by ssh). > > There might be a way to convince ssh to give a more descriptive prompt, > but it looks like it may depend on the auth system used by the server. > Some quick googling turns up: > > > https://serverfault.com/questions/849906/how-to-display-userhostname-in-sshd- > password-prompt > Hi Jeff, thanks for explaining that! I'm sorry thinking the prompt was from Git. Regards, Ulrich