permission denied (publickey) Error using git on windows 7

后端 未结 15 1984
暖寄归人
暖寄归人 2021-01-29 22:35

When I want to push to github with this command

git push origin master

I got this

Permission denied (publickey).
fatal: The rem         


        
15条回答
  •  庸人自扰
    2021-01-29 22:59

    Here is the default output for Windows 7.

    c:\test\app>ssh-keygen -t rsa
    Generating public/private rsa key pair.
    Enter file in which to save the key (//.ssh/id_rsa):
    Could not create directory '//.ssh'.
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    open //.ssh/id_rsa failed: No such host or network path.
    Saving the key failed: //.ssh/id_rsa.
    

    Instead of command prompt git is to be used as per http://help.github.com/win-set-up-git/ ??

提交回复
热议问题