0 votes
1 view
in Devops and Agile by (29.1k points)

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 access my SSH public key?

1 Answer

0 votes
by (49.8k points)

To access the ssh public key you can use 

cat ~/.ssh/id_rsa.pub 


cat ~/.ssh/id_dsa.pub

To list the public keys you need to use:

$ ls ~/.ssh/*.pub

Thus, you can access the ssh public key.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !