How do I access my SSH public key?

前端 未结 19 973
星月不相逢
星月不相逢 2021-01-29 17:04

I\'ve just generated my RSA key pair, and I wanted to add that key to GitHub.

I tried cd id_rsa.pub and id_rsa.pub, but no luck. How can I acce

19条回答
  •  无人共我
    2021-01-29 17:31

    I use Git Bash for my Windows.

    $ eval $(ssh-agent -s) //activates the connection

    • some output

    $ ssh-add ~/.ssh/id_rsa //adds the identity

    • some other output

    $ clip < ~/.ssh/id_rsa.pub //THIS IS THE IMPORTANT ONE. This adds your key to your clipboard. Go back to GitHub and just paste it in, and voilá! You should be good to go.

提交回复
热议问题