see ssh key mac code example
Example 1: checking for existing ssh keys
$ ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
Example 2: ssh key mac
ssh-keygen -t rsa
//copy to clipboard
pbcopy < ~/.ssh/id_rsa.pub
$ ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
ssh-keygen -t rsa
//copy to clipboard
pbcopy < ~/.ssh/id_rsa.pub