mac generate public key and private key code example
Example 1: macbook get my public ssh key
cat ~/.ssh/id_rsa.pub
Example 2: get ssh key mac
$ ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
cat ~/.ssh/id_rsa.pub
$ ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist