UNIX and UNIX-like platforms (including Solaris and Linux) include the ssh-keygen utility to generate SSH key pairs.

To create an SSH key pair on the command line using ssh-keygen:

Open a shell for entering the commands.

At the prompt, enter the following:

https://i1.wp.com/oracle-help.com/wp-content/uploads/2017/03/1-3.jpg?resize=659%2C414

Alternatively, you can simply enter ssh-keygen and then enter responses when prompted for a name and a passphrase. The keys will be created with default values: RSA keys of 2048 bits.

https://i2.wp.com/oracle-help.com/wp-content/uploads/2017/03/3-2.jpg?resize=659%2C420

To see that the files were created, type ls path/root_name*, for example,

https://i0.wp.com/oracle-help.com/wp-content/uploads/2017/03/2-3.jpg?resize=661%2C420

Leave a Reply