Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android: Cannot run program CreateProcess error=5, Access is denied

I keep on getting the following error message from eclipse when I try to push my android code to my remote Git repository in Bitbucket.

Cannot run program "C:\Users\John\.ssh": CreateProcess error=5, Access is denied

I have already performed a successful push once to the remote repository of my entire android project via:

ssh://[email protected]/myname/myproject.git

I have also exchanged public keys between the android and the Bitbucket account. Both eclipse id_rsa public and private keys are stored under my C:/Users/John/.ssh folder

I have also set the environmental variable GIT_SSH=C:/Users/John/.ssh

Now every time I try to push to the remote repository eclipse complains with this error.

My eclipse is Android Developer Tools running on Windows 8.1.

I appreciate any support from the community.

like image 466
goseib Avatar asked Jun 05 '14 18:06

goseib


2 Answers

I found that the path in Android Studio (File-Settings-Version Control->Git->Path to Git) requires not just the path where Git.exe is, but also needs to include the file name git.exe at the end of the path. When I included that this error goes. Hope this helps. You can test it with the Test button next to the path and browse buttons.

like image 163
Anand Avatar answered Oct 14 '22 04:10

Anand


Yes absolutely !

This is the faulty one:

C:\Users\Zozo07\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd

C:\Users\Zozo07\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd\git.exe

The \git.exe at the end has solved my problem !

like image 42
Zoltan Suto Avatar answered Oct 14 '22 03:10

Zoltan Suto