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

Re: [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo

From
Thomas Harning <harningt@gmail.com>
Date
Dec 6, 2007, 17:11 UTC
Message-ID
<47582D5F.7070003@gmail.com>
In-Reply-To
<1196951517.3294.24.camel@localhost.localdomain>
Ivo Alxneit wrote:
Show 12 quoted lines
> when i use git-gui (0.9.0) to push/pull to/from a git+ssh://repo i have
> to supply my password to ssh. i get the password prompt from ssh on the
> controlling shell. as i often use several shells and git-gui might run
> in the background it is rather bothering to find the correct shell where
> ssh expects the password. could this be changed (in a safe way) in
> git-gui e.g. like pinentry pops up a window when gpg is used to sign
> emails?
>
> p.s. please cc me. i have not subscribed to the list
>
> thanks
>   

I know this doesn't answer the problem exactly, but if you use ssh keys and some sort of key management utility (such as Keychain or maybe Gnome keyring?), you can dodge the password entry problem and never have to enter a password (pending you register your ssh key with the server [ex: ssh-copy-id servername])

Another option that might answer your problem (and could be potentially integrated into git-gui) is the usage of the SSH_ASKPASS environment variable.

SSH_ASKPASS is a program to execute to get the passphrase that works by reading console output from the program.

Previous: Ivo AlxneitNext: Alxneit-Kamber Ivo
Message 2 of 4 in “[BUG/RFC git-gui] password for push/pull in case of git+ssh://repo”
  1. Ivo AlxneitDec 6, 2007
  2. Thomas HarningDec 6, 2007
  3. Alxneit-Kamber IvoDec 7, 2007
  4. Jeff KingDec 6, 2007

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.