I am trying to setup my build server (Windows 2008 machine) to build my project from github enterprise but I am getting Permission Denined (Public Key)
when I try to clone a repo. I have generated ssh key and added it to github profile.
This is what I have when I try to test ssh connection and clone the repo.
D:>ssh -T [email protected]
Hi my_user! You've successfully authenticated, but GitHub does not provide shell access.
D:\>git clone [email protected]:myOrg/leaf.git
Cloning into 'leaf'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have tried this with both git bash and windows command prompt.
Please let me know if there is anything I am missing or if you need any more information.
Github denies your access which means either SSH keys are not setup or public Key is not associated with the private key in the github.
Try to generate the ssh key and add to the .ssh/ as id_rsa.pub in the github.
Use https instead of ssh