On a fresh git install, when setting the keys and everything using tortoise git the repositories are cloned correctly. also the pull and push command works without problems.
However, when opening a command line to do the same thing, running git pull (from a cmd, power shell or mingw) throws an error similar to the following. The error is in the lack of access to the folder
The folder is created in the required path (c:\users\u40497.ssh) however it is not recognized as valid.
The permissions are correct and the windows are open as administrators. The keys are correct, because from tortoise they work. The HOME and HOMEPATH environment variables point to the correct paths.
What could be happening that does not recognize that folder as valid?