generating public private key pair macos code example Example: macos create new public key ssh-keygen -t rsa -b 4096