How do I access my SSH public key?

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

    On Mac/unix and Windows:

    ssh-keygen then follow the prompts. It will ask you for a name to the file (say you call it pubkey, for example). Right away, you should have your key fingerprint and your key's randomart image visible to you.

    Then just use your favourite text editor and enter command vim pubkey.pub and it (your ssh-rsa key) should be there.

    Replace vim with emacs or whatever other editor you have/prefer.

提交回复
热议问题