How do I access my SSH public key?

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

    You may try to run the following command to show your RSA fingerprint:

    ssh-agent sh -c 'ssh-add; ssh-add -l'
    

    or public key:

    ssh-agent sh -c 'ssh-add; ssh-add -L'
    

    If you've the message: 'The agent has no identities.', then you've to generate your RSA key by ssh-keygen first.

提交回复
热议问题