Re: [PATCHv3 03/13] introduce credentials API
- From
Jeff King <peff@peff.net>
- Date
- Dec 10, 2011, 19:48 UTC
- Message-ID
- <20111210194801.GA17999@sigill.intra.peff.net>
- In-Reply-To
- <m3r50chcvm.fsf@localhost.localdomain>
On Sat, Dec 10, 2011 at 03:43:01AM -0800, Jakub Narebski wrote:
Show 9 quoted lines
> Jeff King <peff@peff.net> 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