# Failed to connect to repository : Command "C:\\Program Files\\Git\\bin\\git.exe ls-remote -h -- git@github.com:vinayputtaswamy/demoapp-freestyle.git HEAD" returned status code 128:

**URL:** https://community.jenkins.io/t/failed-to-connect-to-repository-command-c-program-files-git-bin-git-exe-ls-remote-h-git-github-com-vinayputtaswamy-demoapp-freestyle-git-head-returned-status-code-128/29094
**Category:** Ask a question
**Tags:** question
**Created:** [March 30, 2025, 11:44am UTC](https://community.jenkins.io/t/failed-to-connect-to-repository-command-c-program-files-git-bin-git-exe-ls-remote-h-git-github-com-vinayputtaswamy-demoapp-freestyle-git-head-returned-status-code-128/29094 "2025-03-30T11:44:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vinay050](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vinay050](https://community.jenkins.io/u/vinay050)
#### Post date: [March 30, 2025, 11:44am UTC](https://community.jenkins.io/t/failed-to-connect-to-repository-command-c-program-files-git-bin-git-exe-ls-remote-h-git-github-com-vinayputtaswamy-demoapp-freestyle-git-head-returned-status-code-128/29094/1 "2025-03-30T11:44:35Z")

</div>

Hi All,

I am getting below error

Failed to connect to repository : Command “C:\Program Files\Git\bin\git.exe ls-remote -h – [git@github.com](mailto:git@github.com):vinayputtaswamy/demoapp-freestyle.git HEAD” returned status code 128:  
stdout:  
stderr: Load key “C:\Windows\TEMP\jenkins-gitclient-ssh10302667967017047474.key”: error in libcrypto  
[git@github.com](mailto:git@github.com): Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

Regards  
Vinay
