Git can't handle the SSH system environment variables well when it is run as the local system administrator. For example when using PStools ( PsExec.exe -i -s cmd.exe ) and try to run git ls-remote ssh:// I get a message: could not create directory '/home/system/.ssh'. This is because the variable 'home' does not exist. Of course I could set the system envirionment variable of 'home', but then the ssh directory will not point to the default ssh directory, which is: C:\Windows\System32\config\systemprofile.ssh.
Git can't handle the SSH system environment variables well when it is run as the local system administrator. For example when using PStools ( PsExec.exe -i -s cmd.exe ) and try to run git ls-remote ssh:// I get a message: could not create directory '/home/system/.ssh'. This is because the variable 'home' does not exist. Of course I could set the system envirionment variable of 'home', but then the ssh directory will not point to the default ssh directory, which is: C:\Windows\System32\config\systemprofile.ssh.