-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
.ssh folder read from inaccessible location? #100
Comments
You win the prize for 100th issue opened for Git for Windows ;-)
Is your |
No, my HOME variable is actually pointing to the right folder: tdijck@TVANDIJCK-W7 MINGW64 ~ tdijck@TVANDIJCK-W7 MINGW64 /c/dev/premake (contrib-libs) |
Actually, I did find this: HOME=/c/Users/tdijck So it looks like HOMEDRIVE=U: which is a mapped drive on my machine, which maps to that network folder. but even in windows explorer I cannot access it.. |
Actually, I did find this: HOME=/c/Users/tdijck So it looks like HOMEDRIVE=U: which is a mapped drive on my machine, which maps to that network folder. but even in windows explorer I cannot access it.. Welcome to the world of corporate re-direction where nothing is as it seems. The $ at the end of the path lists a hidden directory/share. At my work it's the H: drive (Home drive) that is mapped all over the place and isn't what it seems (it's also mapped into the c:\users directory, etc. etc.). Philip |
@Alexpux due to your feedback, I reverted my change that would have avoided this issue: you said that putting the |
I can repro this with just the ssh tool as well btw: tdijck@TVANDIJCK-W7 MINGW64 ~ if that helps anything... |
I have similar issue but slightly different because I'm using git from cmd.exe (from Far Manager prompt actually).
But when I run |
This comment was marked as abuse.
This comment was marked as abuse.
A better link than the MSys2 ticket 111 is probably this one: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-home @Alexpux I would still be interested to know how you would fix the problem that I introduced based on your feedback. The patch I made, and which you shot down, would have prevented the bug discussed in this ticket. |
Under Cygwin/MSYS2 you need unset HOME - it will break things |
Unfortunately, this is not helpful. See my comment here to learn how I intend to do to fix this problem: git-for-windows/msys2-runtime#2 (comment) |
Changing |
Same here, works for me too... it's just that I have to set it to "/c/Users/tvandijck" in a file that sits in the program folders.. so any other user that logs in and uses my machine will have issues again... not that I care right now, since that doesn't really happen anyway, but long-term this doesn't seem like a proper solution. Anyway, thank you for all your help so far. |
Exactly, so it is only a workaround, not a proper solution. |
Please test the current installer (2.3.7.1). It should allow overriding the home directory via the |
This comment was marked as abuse.
This comment was marked as abuse.
try changing db_home to env. I think the backend changes are working, but the new env method isnt being added to nsswitch.conf |
Whoops. Indeed. The most recent |
I'm not sure if this is the correct place to mention it, but the reason that ssh ignores |
@elieux good point. However:
|
This comment was marked as abuse.
This comment was marked as abuse.
Not quite. I want our I will always bundle the installer and portable Git, but you have to keep in mind that I do that from MSys2/MinGW packages already. |
This comment was marked as abuse.
This comment was marked as abuse.
Good, thanks for testing! |
Trace2 V3 (squash/fixup of V1+V2)
used the 64bit 2.5.3-8 installer...
Could not create directory '//irvfs007.some.internal.domain/user$/.ssh'.
The authenticity of host 'git.some.internal.domain (10.130.xx.xx)' can't be established.
ECDSA key fingerprint is <.....>.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (//irvfs007.some.internal.domain/user$/.ssh/known_hosts).
Permission denied (publickey).
fatal: Could not read from remote repository.
Can it just look in c:\users\myname.ssh, or at least falling back on that?
this is where msysGit was storing this information.
The text was updated successfully, but these errors were encountered: