How do I access my SSH public key?

前端 未结 19 946
星月不相逢
星月不相逢 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

    Use:

    # sudo su
    # cd /home/user/.ssh
    .ssh# gedit id_rsa.pub
    

    Then copy the entire file without any spaces. Click your icon at the top right of the GitHub page, go to settings, and add ssh.

    Paste the copy into the space. It may prompt for your GitHub password. Enter it. Save.

提交回复
热议问题