Git, how to generate public key

前端 未结 3 1435
梦谈多话
梦谈多话 2020-12-13 01:15

how to generate a public key(to be used in GitHub/GitLab) using command line [Git Bash].

The command below generates the error sh.exe\": syntax error near une

3条回答
  •  失恋的感觉
    2020-12-13 01:43

    Here is the command

    ssh-keygen -t rsa -b 4096 -C "[your github's email]"
    # Creates a new ssh key
    # Generating public/private rsa key pair.
    

    This will generate a key for you.You have to copy that and insert into your Github's account (just one time).

    Steps how to do It

提交回复
热议问题