add ssh key mac 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
Example 3: ssh key mac
ssh-keygen -t rsa
//copy to clipboard
pbcopy < ~/.ssh/id_rsa.pub
Example 4: genrate shh key github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 5: macos create new public key
ssh-keygen -t rsa -b 4096
Example 6: create ssh key mac github
$ ssh-keygen -t ed25519 -C "[email protected]"