SSH Key Pair Creation ( Unravel OCI Part 1 - Post 2)


Practices for SSH Keys Creation

1. First you shall create an SSH key using the Linux VM you have on your computer. The purpose of SSH keys is to provide a Secure Connection to the compute instance. You can also look at the video on Youtube - https://youtu.be/2HnJFOMewJE to understand about SSH Key pair.

2. An SSH Key pair is a unique combination of Public Key and Private key, used to secure the ssh communication between a client and server. The Public Key is uploaded to the Server and the Private Key is used to connect to the server from a client.

3. Login to the Linux VM as the oracle user ( password - oracle) Right click on the Linux VM desktop and click on Open Terminal



4. In the terminal check your current directory using pwd command as given in the screenshot below.



5. Now create a key with the following command



6. If you already have a pair of SSH keys, you can use that also, you don’t need to generate the keys, but its recommended to create it to make it easy follow the instructions in this book.

7. This command will prompt for a few options.

In the prompt to enter the File in which to save the key – Accept the default and press Enter
In the prompt Enter Passphrase – Accept default ( nothing) press enter
In the prompt Enter same Passphrase – Accept default ( nothing) press enter


8. The result should look like the screenshot below



9. To identify the keys that got created, navigate to the .ssh folder within your current folder with the command cd .ssh and list the contents with the command ls -a.



10. You can also explicitly navigate to the directory with the command cd /home/oracle/.ssh

11. There should be 2 files  id_rsa is the Private Key and id_rsa.pub is the Public Key

12. You will need both these keys for further practices also.

13. This completes this practice on creating the SSH Key pair.

14. You are now all set to start working with OCI

This post is an excerpt from my book Unravel OCI - Part 1 available at https://www.amazon.com/dp/B07MHBZKCH

Comments

Popular posts from this blog

Create a Free Cloud Account with Oracle Cloud ( Unravel OCI Part 1 - Post 3)