Saving ssh key fails

前端 未结 14 1095
予麋鹿
予麋鹿 2021-01-30 21:44

i just started a Git tutorial and I get to a deadend: I try to generate a rsa key part and it fails. I did this, in git bash:

ssh-keygen -t rsa -C \"myemail@myem         


        
14条回答
  •  再見小時候
    2021-01-30 22:20

    Your method should work fine on a Mac, but on Windows, two additional steps are necessary.

    1. Create a new folder in the desired location and name it ".ssh." (note the closing dot - this will vanish, but is required to create a folder beginning with ".")
    2. When prompted, use the file path format C:/Users/NAME/.ssh/id_rsa (note no closing dot on .ssh).

    Saving the id_rsa key in this location should solve the permission error.

提交回复
热议问题