ssh rsa key pair code example Example 1: ssh keygen ssh-keygen -t rsa -b 8192 Example 2: create public key linux ssh-keygen -t rsa -C "[email protected]"