How do I access my SSH public key?

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

    In UBUNTU +18.04

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

    And After that Just Copy And Paste

             cat ~/.ssh/id_rsa.pub 
    

    or

             cat ~/.ssh/id_dsa.pub
    

提交回复
热议问题