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

Re: git push asking for a password

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jul 26, 2010, 18:30 UTC
Message-ID
<20100726183058.GA29313@LK-Perkele-V2.elisa-laajakaista.fi>
In-Reply-To
<29265051.post@talk.nabble.com>
On Mon, Jul 26, 2010 at 03:31:20AM -0700, brennsuppa wrote:
Show 9 quoted lines
> 
> Hi,
> 
> I'm working with git for the first time and when I started it I just had to
> commit/push/pull on an existing repository.
> 
> Now I should create a new repo, but this fails when I try to git push origin
> master:refs/heads/master because it is asking for a password, which should
> not happen since ssh-keys are in use, right?
<Snip secition some repos working and some not>

The password prompts come from SSH, not git. And there only user and host specified in URL matter.

BTW: 'git push origin master:refs/heads/master' can be shortened as
'git push origin master' if 'master' is a branch (it usually is). This isn't
the problem however.
Few possible problems:
- The URL points to wrong host or host alias
- The username in URL is wrong
- You are trying access from different computer/user that doesn't have valid
keys for that system.
-Ilari
Previous: brennsuppa
Message 2 of 2 in “git push asking for a password”
  1. brennsuppaJul 26, 2010
  2. Ilari LiusvaaraJul 26, 2010

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.