How do I access my SSH public key?

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

    On terminal cat ~/.ssh/id_rsa.pub

    explanation

    1. cat is a standard Unix utility that reads files and prints output
    2. ~ Is your Home User path
    3. /.ssh - your hidden directory contains all your ssh certificates
    4. id_rsa.pub OR id_dsa.pub are RSA public keys, (the private key located on the client machine). the primary key for example can be used to enable cloning project from remote repository securely to your client end point.

提交回复
热议问题