From: Jeff King Date: Sat, 10 Dec 2011 19:48:01 GMT Subject: Re: [PATCHv3 03/13] introduce credentials API Message-ID: <20111210194801.GA17999@sigill.intra.peff.net> In-Reply-To: On Sat, Dec 10, 2011 at 03:43:01AM -0800, Jakub Narebski wrote: > Jeff King writes: > > > There are a few places in git that need to get a username > > and password credential from the user; the most notable one > > is HTTP authentication for smart-http pushing. > > A question: does it work also for access via SSH, either without > public key set up (i.e. 'keyboard-interactive'), or with encrypted > private key without ssh-agent set up? No. ssh handles its own password querying, and contacts the user directly via the terminal. And there's not much point in using a password helper with ssh; if you don't want to type your password, set up a key and use ssh-agent. > It would probably require URL i.e. ssh://git.example.com/srv/scm/repo.git > or git+ssh://git.example.com/srv/scm/repo.git and not scp-like > address i.e. user@git.example.com:/srv/scm/repo.git, isn't it? It's not a matter of recognizing the URL; it's that we hand off the authentication problem to ssh, which takes care of it entirely itself. -Peff