Re: [PATCHv3 03/13] introduce credentials API
From: Jeff King <hidden>
Date: 2016-06-15 22:52:36
On Sat, Dec 10, 2011 at 03:43:01AM -0800, Jakub Narebski wrote:
Jeff King [off-list ref] writes:quoted
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