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

Re: why multiple password prompts?

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 29, 2008, 16:59 UTC
Message-ID
<m37iflv54l.fsf@localhost.localdomain>
In-Reply-To
<alpine.LNX.1.00.0803291241020.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> On Sat, 29 Mar 2008, Paul wrote:
Paul who?
Show 11 quoted lines
>> When I do a simple git-pull over SSH, why does it typically prompt
>> me for my SSH password two or three times? And no, I am not
>> inputting it wrong.
> 
> In some versions of git, it makes separate connections to find out
> what the remote's state is and to fetch the actual data. A third
> connection should only be needed if there are new tags to fetch, and
> that would be after some of the messages.
> 
> One of the changes in the upcoming release is to reduce this to one,
> except for an occasional second one.

The way to avoid multiple prompt for SSH password is to set up SSH key infrastructure, so you can login using SSH keys which does not require you to enter password, with the possible exception of adding key to keyring if it is protected by password.

See ssh-add(1) and ssh-keygen(1) (and keychain(1) if you want to add keyonce for all sessions).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 3 of 11 in “why multiple password prompts?”
  1. PaulMar 29, 2008
  2. Daniel BarkalowMar 29, 2008
  3. Jakub NarebskiMar 29, 2008
  4. Daniel BarkalowMar 29, 2008
  5. Martin LanghoffMar 29, 2008
  6. Daniel BarkalowMar 29, 2008
  7. Jeff KingMar 29, 2008
  8. Jeff KingMar 29, 2008
  9. Bryan DonlanMar 30, 2008
  10. Daniel BarkalowMar 30, 2008
  11. Bryan DonlanMar 30, 2008

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.