Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git hangs on windows #71

Closed
cmol opened this issue Jul 23, 2015 · 10 comments
Closed

Git hangs on windows #71

cmol opened this issue Jul 23, 2015 · 10 comments

Comments

@cmol
Copy link
Contributor

cmol commented Jul 23, 2015

When trying to do a push or an update on windows, qtpass hangs.

My best guess would be an ssh session trying to unlock the ssh-key, without prompting the user, as I get a prompt when I do a manual push or pull by command line.

@annejan
Copy link
Member

annejan commented Jul 24, 2015

I have indeed only tested (used) git with (passphraseless) public key authentication.

Currently don't see how to nicely prompt for a passphrase, so will add a warning to the README.

@cmol
Copy link
Contributor Author

cmol commented Jul 24, 2015

It looks like it is possible for the gpg-agent that comes with gpg4win, to work as an ssh-agent as well (and thus prompt the user with a pop-up box when the key needs be be unlocked).

I'm gonna try it out and report back with results.

@cmol
Copy link
Contributor Author

cmol commented Aug 12, 2015

Ok, so it seems that the gpg-agent on windows can assume the role as an ssh-agent for putty, but not other ssh implementations, and thus it is kind of a dead end.

@annejan
Copy link
Member

annejan commented Aug 12, 2015

Windows .. dead end.
Nuff said. .

I don't run windows and don't really see a way of doing anything about it.
Kind of tempted to just close this issue.

@cmol
Copy link
Contributor Author

cmol commented Aug 12, 2015

Well, being a linux person I don't really argue with you there... The thing I have seen working is pass4win, that works with https git remotes, and saves username and password (in some hashed way).

@annejan
Copy link
Member

annejan commented Aug 12, 2015

Mmmm..
I'll have a look at their sourcecode..

@bjmgeek
Copy link

bjmgeek commented Jan 20, 2016

git for windows comes with an ssh-askpass compatible command, git gui--askpass (located in /mingw64/libexec/git-core/git-gui--askpass on my PortableGit version, presumably some place similar for the installed version).

@annejan
Copy link
Member

annejan commented Jan 21, 2016

Added to FAQ, thanks @bjmgeek . .

@bjmgeek
Copy link

bjmgeek commented Jan 22, 2016

however, I was never able to get it to work. Instead, I created a separate passwordless key pair, and put git-shell in the options field for the line in the authorized_keys file:

no-port-forwarding,no-agent-forwarding,command="git-shell -c \"$SSH_ORIGINAL_COMMAND\"" ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX PortableGit MINGW64

@jrisch
Copy link

jrisch commented Jan 25, 2016

Just a note: When using HTTPS remotes, It should be possible to make git use wincred to save the git password, by using git-bash and first setting the option:

git config --global credential.helper winced

Then checking the repo out:

git clone https://server/repo localreponame

Then, your git credentials should be saved in the windows credentials manager, and maybe it will solve the problem relating to qtpass. I haven't tested this myself, but it should be doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants