- On any Unix flavoured machine run the below command
ssh-keygen
- When you type in the above command and hit enter you will be asked for
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
- Enter the Name of the key as requested [For Ex: Sample_key] and hit enter. The machine prompts for a passphrase hit enter and then it again prompts to re-enter the passphrase to continue.
Enter passphrase (empty for no passphrase):
Enter same passphrase again: