git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo
@ 2007-12-06 14:31 Ivo Alxneit
  2007-12-06 17:11 ` Thomas Harning
  2007-12-06 19:18 ` [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Ivo Alxneit @ 2007-12-06 14:31 UTC (permalink / raw)
  To: git

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

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
-- 
Dr. Ivo Alxneit
Laboratory for Solar Technology   phone: +41 56 310 4092
Paul Scherrer Institute             fax: +41 56 310 2688
CH-5232 Villigen                   http://solar.web.psi.ch
Switzerland                   gnupg key: 0x515E30C7


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo
  2007-12-06 14:31 [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo Ivo Alxneit
@ 2007-12-06 17:11 ` Thomas Harning
  2007-12-07  8:57   ` [BUG/RFC git-gui] password for push/pull in case ofgit+ssh://repo Alxneit-Kamber Ivo
  2007-12-06 19:18 ` [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo Jeff King
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Harning @ 2007-12-06 17:11 UTC (permalink / raw)
  To: Ivo Alxneit; +Cc: git

Ivo Alxneit wrote:
> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo
  2007-12-06 14:31 [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo Ivo Alxneit
  2007-12-06 17:11 ` Thomas Harning
@ 2007-12-06 19:18 ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff King @ 2007-12-06 19:18 UTC (permalink / raw)
  To: Ivo Alxneit; +Cc: git

On Thu, Dec 06, 2007 at 03:31:57PM +0100, Ivo Alxneit wrote:

> 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?

IIRC, ssh will run the 'ssh-askpass' program if DISPLAY is set and there
is no tty available, so git-gui should be able to set that up (or you
probably can yourself by simply backgrounding git-gui and closing the
terminal).

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG/RFC git-gui] password for push/pull in case ofgit+ssh://repo
  2007-12-06 17:11 ` Thomas Harning
@ 2007-12-07  8:57   ` Alxneit-Kamber Ivo
  0 siblings, 0 replies; 4+ messages in thread
From: Alxneit-Kamber Ivo @ 2007-12-07  8:57 UTC (permalink / raw)
  To: Thomas Harning, Jeff King; +Cc: git

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

On Thu, 2007-12-06 at 12:11 -0500, Thomas Harning wrote:
> Ivo Alxneit wrote:
> > 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.

thanks to both of you.

in essence you are telling me to use the infrastructure provided by ssh
to ask fo the password. i'll try :-)
-- 
Dr. Ivo Alxneit
Laboratory for Solar Technology   phone: +41 56 310 4092
Paul Scherrer Institute             fax: +41 56 310 2688
CH-5232 Villigen                   http://solar.web.psi.ch
Switzerland                   gnupg key: 0x515E30C7

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-07  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-06 14:31 [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo Ivo Alxneit
2007-12-06 17:11 ` Thomas Harning
2007-12-07  8:57   ` [BUG/RFC git-gui] password for push/pull in case ofgit+ssh://repo Alxneit-Kamber Ivo
2007-12-06 19:18 ` [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo Jeff King

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 NNTP newsgroup(s).