generate 2nd ssh key mac command line code example Example 1: macbook get my public ssh key cat ~/.ssh/id_rsa.pub Example 2: macos create ssh key ssh-keygen -t rsa