How do I access my SSH public key?

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

    If you're using windows, the command is:

    type %userprofile%\.ssh\id_rsa.pub

    it should print the key (if you have one). You should copy the entire result. If none is present, then do:

    ssh-keygen -t rsa -C "your.email@example.com" -b 4096

提交回复
热议问题