This post covers, connectivity to Oracle Public Cloud machine by our trainee in our Oracle Compte Cloud Services – IaaS training where after creating a Linux Machine (for Database), trainee was unable to connect from Laptop/Desktop using Putty on SSH (Port 22).
Note: When you configure Compute Instance on IaaS/OCI or on PaaS – Database Cloud Service (DBCS) for Database as a Service (DBaaS), you get dedicated machine with full Unix access including root (connect as opc user and then sudo to root)
One of our trainees has created one database instance on cloud and after that, he was trying to connect to the instance via Putty (SSH) but was getting below error message.
PUTTY Fatal Error:
Disconnected: No supported authentication methods available (server sent: publickey, gssapi-keyex, gssapi-with-mic
Connecting to Oracle Cloud
There are 3 main ways to network to Oracle Cloud Instance i.e..
Note: Here is slide from Connectivity/Security Module of our Cloud Training
For SSH Connection from your laptop/desktop to Oracle Cloud Machine, you need Public IP of your cloud instance and you can get that IP by clicking on the instance and it will show the details of the instance as shown below:
Cause: SSH Connectivity Issue
There could be 2 cause of this issue:
- Your SSH port 22 is not open from internet in Cloud Firewall
- SSH Public key you generated was not generated or not uploaded properly while creating the instance (or you are not using Private Key Properly in Putty).
How to Check if SSH Port 22 is Open
In order to find if SSH port 22 is open on Cloud from Internet, use telnet from machine you are connecting
telnet <public IP of Machine> 22
If port is open you should see output like
Connected to .188.8.131.52
Escape character is ‘^]’.
In our case port 22 was not open across Firewall on Cloud
1. For first cause mentioned above, make sure you have opened the SSH port 22. To open the SSH Port 22, create a Security Rule to allow ssh port from Network tab as shown below.
We cover Step by step method to open SSH Port and other connection details in all our Cloud trainings Oracle Compte Cloud Services – IaaS/OCI, EBS R12 on Cloud, or Oracle Database Cloud Service (Cloud DBA)
2. For the second (Wrong Certificates or wrong configuration in Putty), Try to avoid copy-paste key while creating an instance. Instead of that save and browse the public key file from the saved location.
If you are new to Oracle Cloud and would like to Try Cloud Account for FREE 30 Days, then click here and get our free Step by Step Guide to Register and Access Oracle Cloud.
If you are looking for commonly asked interview questions for Oracle Compte Cloud Services – IaaS. then just click below and get that in your inbox or join our Private Facebook Group dedicated to Oracle Cloud Members Only.