Git - SSH remotes with GitHub Desktop

核能气质少年 提交于 2020-08-01 17:30:29

问题


I am using GitHub Desktop on Windows 10. I initially cloned a repo using its HTTPS URL, but now our organisation have advised that we must use the SSH URL instead. So I have changed this over.

I have also copied the contents of my public SSH key (id_rsa.pub) in to my GitHub account. My SSH key is protected by a passphrase.

Now when I try to do to a sync in GitHub Desktop I get the following error:

In Git Bash it works fine (it asks me for my passphrase before each pull/push though). Any idea what I need to do to make this work?


回答1:


As more recently seen in "Permission failure cloning in Git in Windows", try and launch GitHub Desktop after:

git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"

That will ensure GitHub Desktop to use the right OpenSSH ssh.exe, instead of an internal one, as seen in desktop/desktop issue 5641.



来源:https://stackoverflow.com/questions/56993115/git-ssh-remotes-with-github-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!