-
Notifications
You must be signed in to change notification settings - Fork 70
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 doesn't seem to work without ssh first #29
Comments
This is weird, could you check where ssh-askpass is installed on your So, ... ssh-ident calls ssh-add to load keys. In turn, ssh-add invokes From the error message above, it seems like that when git invokes Could you post the following?
By googling randomly about git and ssh-askpass, it seems like git has
Seems like the parameter can be overridden with: git config --global core.askpass ''
Thank you, |
I don't believe so.
I don't believe I have any special config; it all works fine without ssh-ident being present.
Yes, git is fine without ssh-ident, working as you would expect, asking for my passphrase on my SSH key.
If I set that, there's no change, it still has the
No, I don't appear to have any such program. Hope that's of some help. |
Can you try setting In the meantime, you could try using either a ssh-askpass script (as OS X doesn't seem to provide a system binary), or if your git installation provides git-gui--askpass (e.g. try finding the location with This will probably only start working with #31 merged due to SSH_ASKPASS currently not working correctly in master. |
I'm guessing (looking at ssh-add source code), the only difference is ssh-add when called via ssh/ssh-ident via git is getting a false for isatty/or being able to open /dev/tty, whereas when called via ssh/ssh-ident directly it's okay. I don't know why this is okay when ssh-ident isn't in the loop. |
Sorry for latency, finally got enough time to investigate the issue, and reproduce the error: Should have a fix very soon.
|
If in a new session I try and git pull, then I am not asked for my passphrase, the key isn't loaded and I can't log in. If I SSH first and then use git pull, it is fine, see transcript below. I have ssh-ident as a symlink from ssh in my bin directory, which the readme says: "This works for rsync and git". This is on a Mac 10.10.5, with git 2.8 from MacPorts. Let me know if you need any more information.
The text was updated successfully, but these errors were encountered: