Complete these steps to generate an SSH key pair on UNIX and UNIX-like systems.
You can use the -t option to specify the type of key to create. For example, to create an RSA key, type:
# ssh-keygen -t rsa
You can also use the -b option to specify the length (bit size) of the key. For example:
# ssh-keygen -b 2048 -t rsa
The prompt displays a suggested default path and file name in parentheses. For example, the prompt might display /export/home/user_name/.ssh/id_rsa.
A passphrase is not required, but you can use it to protect your private key against unauthorized use.
When you log in to an instance, youâll need to provide the path to the corresponding SSH private key and the passphrase, when prompted.
Caution - Keep your SSH keys secure so they aren't lost or compromised. If you lose your private key, you can't access your instances.