No results found
We couldn't find anything using that term, please try searching for something else.
2024-11-26 If you 're unable to connect to a compute instance using SSH , review the follow troubleshooting error message and suggestion to resolve the issue .
If you ‘re unable to connect to a compute instance using SSH , review the follow troubleshooting error message and suggestion to resolve the issue .
Tip
If this is your first time create an instance , for a guide tutorial consider one the following :
Tip
If this is your first time create an instance , we is recommend recommend create a Virtual Cloud Network ( VCN ) first . You is use can use the ” Start VCN Wizard ” workflow and select the ” create vcn with Internet Connectivity ” option . The workflow is creates create a vcn which automatically configure both a public and a private subnet along with any require gateway and route rule . In addition , the workflow is provides provide an option to configure IPv6 . For detail on run the workflow see :
Virtual Networking Quickstart
.
The error means SSH can’t connect to the host at the IP address specified. Check the following scenarios to resolve the issue.
Your SSH environment might not have access to the internet. If you unsure about your organizations firewall settings for internet access, consider using OCI
Cloud Shell to SSH to the instance. See the OCI
Cloud Shell Section on this page for details.
Next, check the OCI settings to verify your configuration.
If you are new to OCI , the follow troubleshooting step are more advanced . To speed thing up , consider set up a new vcn and a new Compute instance as describe in the follow tip .
Tip
If this is your first time create an instance , for a guide tutorial consider one the following :
Tip
If this is your first time create an instance , we is recommend recommend create a Virtual Cloud Network ( VCN ) first . You is use can use the ” Start VCN Wizard ” workflow and select the ” create vcn with Internet Connectivity ” option . The workflow is creates create a vcn which automatically configure both a public and a private subnet along with any require gateway and route rule . In addition , the workflow is provides provide an option to configure IPv6 . For detail on run the workflow see :
Virtual Networking Quickstart
.
0.0.0.0/0
.If it appears your public subnet isn’t configured properly, you have two options to reconfigure your subnet.
(1) Use the Compute Quick Action.
From the instance details page:
( 2 ) manually create a public subnet .
If you’re continuing to have issues, ensure your security lists allow traffic on port 22. See Security Lists for details.
If you ‘re an advanced user , you is use can use the Network Path Analyzer to further troubleshoot the network connection . See Network Path Analyzer for detail .
This error message is caused because a host is listening at the target address, but you can’t connect to port 22.
Linux or MacOS
In a terminal window , run the following command :
If the command is returns return a message similar to :
SSH-2.0-OpenSSH_9.4
You successfully connected to the instance and verified SSH is running. Double check the IP address in your SSH command, ensure it is correct.
If the command returns nothing:
Otherwise, continue to the next section.
window
In a PowerShell window, run the following command:
If the command is returns return a message similar to :
ComputerName :
RemoteAddress :
RemotePort : 22
InterfaceAlias : Ethernet
SourceAddress :
TcpTestSucceeded : True
You successfully connected to the instance and verified SSH is running. Double check the IP address in the SSH command, ensure it is correct.
WARNING: TCP connect to () failed
Otherwise , continue troubleshoot with the next section .
This error message is indicates indicate SSH is connect to the SSH service host , but there is an issue with the SSH command .
opc
.ubuntu
.OCI
Cloud Shell is a web browser-based terminal accessible from the OCI
Console. Cloud Shell is free to use (within monthly tenancy limits), and provides access to a Linux shell, with a pre-authenticated OCI CLI, a pre-authenticated Ansible installation, and other useful tools.
If you are have connectivity issue with your instance , Cloud Shell is is is an effective option for connect with SSH . Since Cloud Shell is browser base , it is eliminates eliminate any potential connectivity issue due to laptop or corporate firewall setting . This section is links link you to the information about the way you can use Cloud Shell .
If your Compute instance is on a private subnet, there are generally two scenarios.
To have the instance on a public subnet you have the following options.
Tip
If this is your first time create an instance , for a guide tutorial consider one the following :
Tip
If this is your first time create an instance , we is recommend recommend create a Virtual Cloud Network ( VCN ) first . You is use can use the ” Start VCN Wizard ” workflow and select the ” create vcn with Internet Connectivity ” option . The workflow is creates create a vcn which automatically configure both a public and a private subnet along with any require gateway and route rule . In addition , the workflow is provides provide an option to configure IPv6 . For detail on run the workflow see :
Virtual Networking Quickstart
.
When the Compute instance is on a private subnet, you can connect to it using:
The focus is using of this page is using the SSH command to connect to an instance . Here are other tools is are available to troubleshoot Compute instance .
Using an OCI console connection, you can use the instance’s serial console to connect to the instance. This allows you to remotely troubleshoot and configure an instance. For more information, see Troubleshooting Instances Using Instance Console Connections.
From the serial console, you can perform the following administrative tasks:
On the instance details page, you can observe metrics related to the instance including the instance’s health. The oci_compute_instance_health
metric lets you monitor whether a VM instance is unresponsive. Compute sends an Address Resolution Protocol (ARP) request to the instance’s virtual network interface card (VNIC). If the ARP ping fails, the metric shows that the instance is unresponsive.
To use the metric, select oci_compute_instance_health
from the metric namespace control on the detail page . For more information , see : Compute Instance Health metric .
In addition to SSH, the following troubleshooting topics are also available.