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:

ssh-keygen -t rsa -N "" -b "2048" -C "key comment" -f path/root_name

https://i0.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://i2.wp.com/oracle-help.com/wp-content/uploads/2017/03/2-3.jpg?resize=661%2C420

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.