Copying a rsa public key to clipboard

Solution 1:

cat ~/.ssh/id_rsa.pub

then you can copy your ssh key

Solution 2:

To copy your public key to the clipboard

cat ~/.ssh/id_rsa.pub | pbcopy

This pipes the output of the file to pbcopy.

Solution 3:

Check the path where you have generated the public key. You can also copy the id_rsa by using this command:

clip < ~/.ssh/id_rsa.pub