Saving ssh key fails

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

    For Linux on terminal use:

    ssh-keygen -t ed25519 -C ""
    

    this generate new modeled key. Or can create as:

    ssh-keygen -t rsa -b 2048 -C "any comment"
    

    Then continue following terminal.. give any name to the file as asked Again follow it with empty passphrase..and continue

    Then goto the /home/user/.ssh/id_ed25519 or /home/user/.ssh/id_rsa (is hidden file..look by doing ctrl+h to unhide hidden file) and copy it to gitlab => profile => setting => ssh => create new key there by pasting copied key and NOTE: public key always starts with ssh. Enjoy! Help:gitlab-Help

提交回复
热议问题