How do I access my SSH public key?

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

    On a Mac, you can do this to copy it to your clipboard (like cmd + c shortcut)
    cat ~/Desktop/ded.html | pbcopy
    pbcopy < ~/.ssh/id_rsa.pub

    and to paste pbpaste > ~Documents/id_rsa.txt

    or, use cmd + v shorcut to paste it somewhere else.

    ~/.ssh is the same path as /Users/macbook-username/.ssh
    You can use Print work directory: pwd command on terminal to get the path to your current directory.

提交回复
热议问题