How to establish secure connection to Oracle Cloud instance by using PuTTY?

Connecting to an Oracle Cloud instance using PuTTY involves establishing a secure and encrypted connection between your local computer and a virtual server stored on the Oracle Cloud. PuTTY, a widely-used SSH and Telnet client for Windows, serves as the tool to create this connection, offering a secure method to access and manage your Oracle Cloud instance.

Explore how to use PuTTY X11 Forwarding in Linux.

Generate SSH Key Pair using PuTTYgen:

Open PuTTYgen on your local system.

Click on the "Generate" button to create a new key pair.

Move your cursor randomly within the PuTTYgen window for added randomness.

Save the private key by clicking "Save private key" (usually saved with a .ppk extension).

Save the public key by clicking "Save public key."

Add Public Key to Oracle Cloud:

Access your Oracle Cloud account.

Navigate to the Compute section.

Select the instance to which you want to add the SSH key.

In the Details tab, scroll down to the SSH Keys section.

Click "Edit" and paste the contents of your public key file into the SSH Key section.

Save the changes.

Connect to Oracle Cloud with PuTTY:

Open PuTTY on your local system.

Enter your Oracle Cloud instance public IP address or username in the "Hostname" section.

Set the connection type to SSH and port to 22.

Navigate to Connection > SSH > Auth on the left panel. Click on "Browse" and select the PuTTYgen-generated private key.

Save the Connection:

Enter a name in the "Saved Session" section.

Click "Save" to store the connection for future use.

Establish the Connection:

Click "Open" to initiate the connection.

Enter the username and password when prompted.

Now, you are successfully connected to your Oracle Cloud instance using PuTTY and the SSH key pair you generated. Ensure that the private key is securely stored on your local system, and the public key is added to your Oracle Cloud account for authentication.