{"thread":{"id":"11159","subject":"[BUG/RFC git-gui] password for push/pull in case of git+ssh://repo","startedAt":"2007-12-06T14:31:57Z","lastAt":"2007-12-07T08:57:43Z","messageCount":4,"participants":["Ivo Alxneit","Thomas Harning","Jeff King","Alxneit-Kamber Ivo"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"62153","messageId":"1196951517.3294.24.camel@localhost.localdomain","threadId":"11159","inReplyTo":null,"subject":"[BUG/RFC git-gui] password for push/pull in case of git+ssh://repo","fromName":"Ivo Alxneit","fromEmail":"ivo.alxneit@psi.ch","sentAt":"2007-12-06T14:31:57Z","receivedAt":"2007-12-06T14:31:57Z","isPatch":false,"sender":{"key":"ivo.alxneit@psi.ch","avatar":null},"body":"when i use git-gui (0.9.0) to push/pull to/from a git+ssh://repo i have\nto supply my password to ssh. i get the password prompt from ssh on the\ncontrolling shell. as i often use several shells and git-gui might run\nin the background it is rather bothering to find the correct shell where\nssh expects the password. could this be changed (in a safe way) in\ngit-gui e.g. like pinentry pops up a window when gpg is used to sign\nemails?\n\np.s. please cc me. i have not subscribed to the list\n\nthanks\n-- \nDr. Ivo Alxneit\nLaboratory for Solar Technology   phone: +41 56 310 4092\nPaul Scherrer Institute             fax: +41 56 310 2688\nCH-5232 Villigen                   http://solar.web.psi.ch\nSwitzerland                   gnupg key: 0x515E30C7\n\n"},{"id":"62167","messageId":"47582D5F.7070003@gmail.com","threadId":"11159","inReplyTo":"1196951517.3294.24.camel@localhost.localdomain","subject":"Re: [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo","fromName":"Thomas Harning","fromEmail":"harningt@gmail.com","sentAt":"2007-12-06T17:11:59Z","receivedAt":"2007-12-06T17:11:59Z","isPatch":false,"sender":{"key":"harningt@gmail.com","avatar":"https://gravatar.com/avatar/a79ddd43da8c8f1f899cd75b7b95cc5f3b2ba5643400468988b1a12c86b75d08?d=mp&s=160"},"body":"Ivo Alxneit wrote:\n> when i use git-gui (0.9.0) to push/pull to/from a git+ssh://repo i have\n> to supply my password to ssh. i get the password prompt from ssh on the\n> controlling shell. as i often use several shells and git-gui might run\n> in the background it is rather bothering to find the correct shell where\n> ssh expects the password. could this be changed (in a safe way) in\n> git-gui e.g. like pinentry pops up a window when gpg is used to sign\n> emails?\n>\n> p.s. please cc me. i have not subscribed to the list\n>\n> thanks\n>   \nI know this doesn't answer the problem exactly, but if you use ssh keys \nand some sort of key management utility (such as Keychain or maybe Gnome \nkeyring?), you can dodge the password entry problem and never have to \nenter a password (pending you register your ssh key with the server [ex: \nssh-copy-id servername])\n\n\nAnother option that might answer your problem (and could be potentially \nintegrated into git-gui) is the usage of the SSH_ASKPASS environment \nvariable.\n\nSSH_ASKPASS is a program to execute to get the passphrase that works by \nreading console output from the program.\n"},{"id":"62187","messageId":"20071206191812.GA12006@sigill.intra.peff.net","threadId":"11159","inReplyTo":"1196951517.3294.24.camel@localhost.localdomain","subject":"Re: [BUG/RFC git-gui] password for push/pull in case of git+ssh://repo","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-12-06T19:18:12Z","receivedAt":"2007-12-06T19:18:12Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Dec 06, 2007 at 03:31:57PM +0100, Ivo Alxneit wrote:\n\n> when i use git-gui (0.9.0) to push/pull to/from a git+ssh://repo i have\n> to supply my password to ssh. i get the password prompt from ssh on the\n> controlling shell. as i often use several shells and git-gui might run\n> in the background it is rather bothering to find the correct shell where\n> ssh expects the password. could this be changed (in a safe way) in\n> git-gui e.g. like pinentry pops up a window when gpg is used to sign\n> emails?\n\nIIRC, ssh will run the 'ssh-askpass' program if DISPLAY is set and there\nis no tty available, so git-gui should be able to set that up (or you\nprobably can yourself by simply backgrounding git-gui and closing the\nterminal).\n\n-Peff\n"},{"id":"62263","messageId":"1197017863.4672.3.camel@pc446.psi.ch","threadId":"11159","inReplyTo":"47582D5F.7070003@gmail.com","subject":"Re: [BUG/RFC git-gui] password for push/pull in case ofgit+ssh://repo","fromName":"Alxneit-Kamber Ivo","fromEmail":"ivo.alxneit@psi.ch","sentAt":"2007-12-07T08:57:43Z","receivedAt":"2007-12-07T08:57:43Z","isPatch":false,"sender":{"key":"ivo.alxneit@psi.ch","avatar":null},"body":"On Thu, 2007-12-06 at 12:11 -0500, Thomas Harning wrote:\n> Ivo Alxneit wrote:\n> > when i use git-gui (0.9.0) to push/pull to/from a git+ssh://repo i have\n> > to supply my password to ssh. i get the password prompt from ssh on the\n> > controlling shell. as i often use several shells and git-gui might run\n> > in the background it is rather bothering to find the correct shell where\n> > ssh expects the password. could this be changed (in a safe way) in\n> > git-gui e.g. like pinentry pops up a window when gpg is used to sign\n> > emails?\n> >\n> > p.s. please cc me. i have not subscribed to the list\n> >\n> > thanks\n> >   \n> I know this doesn't answer the problem exactly, but if you use ssh keys \n> and some sort of key management utility (such as Keychain or maybe Gnome \n> keyring?), you can dodge the password entry problem and never have to \n> enter a password (pending you register your ssh key with the server [ex: \n> ssh-copy-id servername])\n> \n> \n> Another option that might answer your problem (and could be potentially \n> integrated into git-gui) is the usage of the SSH_ASKPASS environment \n> variable.\n> \n> SSH_ASKPASS is a program to execute to get the passphrase that works by \n> reading console output from the program.\n\nthanks to both of you.\n\nin essence you are telling me to use the infrastructure provided by ssh\nto ask fo the password. i'll try :-)\n-- \nDr. Ivo Alxneit\nLaboratory for Solar Technology   phone: +41 56 310 4092\nPaul Scherrer Institute             fax: +41 56 310 2688\nCH-5232 Villigen                   http://solar.web.psi.ch\nSwitzerland                   gnupg key: 0x515E30C7\n"}]}