Skip to main content

How to create Linux instance using Oracle cloud server?

In this tutorial, We will see how to create a Linux instance using oracle free cloud infrastructure.


First, we need to create a public key and private keys using Putty key generator. Public key is used while creating the Linux instance.


Private key is used to connect the Linux instance using any SSH client.





Install Putty keygen using this link.  https://www.puttygen.com/download-putty


Step 1: Open Putty KeyGen and click generate button.





Step 2: Once the key generated, copy the key to a text file and save the text file as  .pub extension. This .pub ( Public key) is used while creating the Linux instance.





Step 3: Next, we need to save the private key as below. Enter the key phrase and confirm the key phrase again. Note down this key phrase somewhere. Later this key phrase is used along with private key (.ppk) to access the linux instance using any SSH client.





Step 4: Log in to your oracle cloud instance. Oracle cloud dashboard will look like below. Click the 'Create VM instance' menu.





Step 5: Below screen will be loaded after clicking 'Create VM instance'.




Step 6: We need to use the public key we created in Step 2. Click the create button after loading the public key.





Step 7:  Once the Linux instance created, verify whether it's running as below. It may take a few minutes. Copy the public IP and use it to connect to the SSH client.




Step 8: Open the Putty SSH client. In the Host Name box, Paste the copied IP address in Step 7.




Step 9: Load the private key created in Step 3 using the below option.




Step 10: Click the Open button after the above step. You can see the below screen. Click Yes in the alert.




Step 11:  Use the key phrase we noted in Step 3 and click enter.




That's all we need to do. You will be connected to Linux terminal.


Please click and subscribe to the below channel to see this tutorial in video format.


https://www.youtube.com/channel/UCtzdDJIXhQX6v3-8iXCJWQw?sub_confirmation=1


Click this link for youtube video tutorial.




Please post your questions in the comment section.


Comments

Popular posts from this blog

How to create free oracle cloud ubuntu vps and access through windows remote desktop connection?

In this post, We will see how to create a free ubuntu VPS server in oracle cloud and configure ubuntu xrdp to access via windows remote desktop connection. Creating Free UBUNTU VPS server in oracle cloud If you don't have Ubuntu VPS running, follow the link below and create the server. Also, You can watch the youtube video tutorial at the end of this post. Create Free VPS in oracle cloud While creating the compute instance, we need to select Canonical Ubuntu in the Operating system image selection below. Follow the below steps once you have the server up and running. Update firewall port configurations for RDP We need to allow connections via port 3389 in oracle cloud subnet configurations for remote desktop connection. To do that, Click 'Public subnet' on the ubuntu instance details page and add a new Ingress rule. Select Default security list. Click the 'Add Ingress rul...

Install and configure free secure SSL certificate in NGINX web server in Oracle Linux cloud

SSL certificates are used to secure our website and encrypt the details sent to the server. We will use a free self-signed SSL certificate and configure the SSL certificate using the NGINX web server. We need the oracle Linux cloud instance and NGINX server up and running. This step is prerequisite for this tutorial. Please refer to below link to install the oracle Linux and NGINX server. https://www.tech4learners.com/2022/01/how-to-create-linux-instance-with-24-gb.html https://www.tech4learners.net/2022/01/install-nginx-web-server-in-linux-cloud.html Once your compute instance and NGINX are up and running, proceed with the following steps. First step is to create PRIVATE / PUBLIC keys using the openssl command. We are using the RSA algorithm as an encryption method.  Replace the <IP_ADDRESS> with your Linux instance IP ADDRESS. sudo openssl req -new -x509 -days 30 -nodes -newkey rsa:2048 -keyout private.key \-out public.crt -subj '/C=US/ST=Ca/L=Sunnydale/CN=<IP_ADDRESS...

How to create Linux instance with 24 GB RAM 4 CPU using Oracle cloud server?

This tutorial will see how to create an oracle cloud Linux compute instance with 24 GB RAM and 4 CPUs. We will not use Putty keys to create and connect the Linux instance in this method. We will be using a public key /Private key generated by Oracle. Step 1.  Log in to your Oracle Cloud account and navigate to compute instance menu. Step 2. Click the Edit option in the Image and Shape section. Step 3. You can see 'AMD' shape is preselected. Click on Change Shape. Select 'AMPERE ARM-Based processor.' Click on the Shape name and choose the required CPU and memory. After finishing, click the 'select shape' button. Step 4: In the Add SSH keys part, select the 'Generate a key pair for me' option. Save private and public keys. Click the create button once keys are saved in the drive. Wait for a few seconds until the instance status shows as RUNNING. Verify the memory and CPU count in Shape configuration. Step 5: Download and install Mobaxterm SSH client from b...