Saving ssh key fails

前端 未结 14 1111
予麋鹿
予麋鹿 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:22

    For MacOS

    Open terminal and make sure you have .ssh directory.

    On your home(~) folder enter ls -hal and you will see all hidden directories and make sure you have .ssh directory, if not do mkdir .ssh

    then enter this ssh-keygen -t rsa -C "myemail@myemail.com"

    then you have: Generating public/private rsa key pair. Enter file in which to save the key (/Users/YOURUSERNAME/.ssh/id_rsa):

    press Enter (you don't need to enter nothing if you agree with that path or you need to enter your path from root of volume)

    then follow answer what is gonna ask press Enter.

    Check it here https://help.github.com/en/enterprise/2.16/user/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

提交回复
热议问题