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

Unable to push (ssh keys problem) #383

Closed
ymakux opened this issue Sep 11, 2015 · 10 comments
Closed

Unable to push (ssh keys problem) #383

ymakux opened this issue Sep 11, 2015 · 10 comments

Comments

@ymakux
Copy link

ymakux commented Sep 11, 2015

"Could not create directory '/c/Users/\336\360\340/.ssh'.
Failed to add the host to the list of known hosts (/c/Users/\336\360\340/.ssh/known_hosts).
Permission denied (publickey).
fatal: Could not read from remote"

I'm getting this error when I try to push to remote from UI or command line. As I understand the program unable to find the ssh keys. I've read some SO topics, all they advised to set correctly Windows "HOME" variable. I set to C:\Users\Юра (confirmed by echo $HOME). It doesn't help. Any other suggestions?

UPD: Windows 7, 32bit, Git for win 2.5.2

@ymakux
Copy link
Author

ymakux commented Sep 11, 2015

The problem was that I had non-latin characters in the user profile path. I think it's a bug

@stenin-nikita
Copy link

I had the same problem. Corrected by adding variable HOME. This path must not contain Latin characters.

@dscho
Copy link
Member

dscho commented Sep 14, 2015

This is most likely the same problem as #331

@ymakux
Copy link
Author

ymakux commented Sep 15, 2015

@dscho
Copy link
Member

dscho commented Sep 15, 2015

Here is a temporary solution.

Let's call it a work-around, okay? 😃

@fbehrens
Copy link

Just had the same problem on windows 8.1 even with pure acsii in %USERPROFILE%,
setting %HOME% didn't help either. So I hat to revert to 2.5.0.

Would be nice when this is fixed to find some documentaion about, where to have the .ssh keys.
I more or less used trial and error fiddling with %HOME%,%HOMEDRIVE%,%HOMEPATH%

@dscho
Copy link
Member

dscho commented Sep 15, 2015

So I hat to revert to 2.5.0.

So you're saying 2.5.0 works? What about 2.5.1 and 2.5.2(1)?

@dscho
Copy link
Member

dscho commented Sep 16, 2015

Sorry, not #331 but #336. But the resolution is similar in both cases.

@dscho
Copy link
Member

dscho commented Sep 16, 2015

Everybody who has this problem should download msys-2.0.dll from https://github.com/dscho/msys2-runtime/releases/tag/home-non-ascii, replace the local file of the same name (it is in Git\usr\bin) and test.

@ymakux
Copy link
Author

ymakux commented Sep 16, 2015

Thanks @dscho , I'll try

dscho added a commit to git-for-windows/msys2-runtime that referenced this issue Sep 16, 2015
@dscho dscho closed this as completed Sep 17, 2015
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