A
A
Alexander2014-11-04 13:06:52
git
Alexander, 2014-11-04 13:06:52

Why can't git see the key?

With git-push (and other commands where authorization is needed), everything except the console from git itself writes the wrong ssh key. The key is in user_dir/.ssh/id_rsa.pub, I tried many ways, but could not solve the problem. At the same time, the connection via "Git Bash" works.
Windows 7 OS

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2014-11-19
@OneFive

Solution: Set the HOME environment variable to the profile folder.

B
Boris Benkovsky, 2014-11-04
@benbor

1. I don't know if this will solve your particular problem, but you should be worried about the private key, not the public key. The public key must be somewhere on the server side, as your identifier.
2. Look in the environment variables, and the git configs, maybe another key is specified there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question