Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

(我刚刚生成了我的RSA密钥对,我想将该密钥添加到GitHub。)

I tried cd id_rsa.pub and id_rsa.pub , but no luck.

(我尝试了cd id_rsa.pubid_rsa.pub ,但没有运气。)

How can I access my SSH public key?

(如何访问SSH公钥?)

  ask by sscirrus translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
245 views
Welcome To Ask or Share your Answers For Others

1 Answer

cat ~/.ssh/id_rsa.pub or cat ~/.ssh/id_dsa.pub

(cat ~/.ssh/id_rsa.pubcat ~/.ssh/id_dsa.pub)

You can list all the public keys you have by doing:

(您可以通过执行以下操作列出您拥有的所有公钥:)

$ ls ~/.ssh/*.pub


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...