How do I access my SSH public key?

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

    Here's how I found mine on OS X:

    1. Open a terminal
    2. (You are in the home directory) cd .ssh (a hidden directory)
    3. pbcopy < id_rsa.pub (this copies it to the clipboard)

    If that doesn't work, do an ls and see what files are in there with a .pub extension.

提交回复
热议问题