You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

Troubleshooting Unable to ssh Into an OCI instance

edited Aug 19, 2023 6:44AM in Linux

Purpose

There are a lot of potential causes for not being able to ssh in to an instance. The most common are outlined here.


Troubleshooting Steps

Issue 1: Security list rule allowing TCP traffic for port 22

To troubleshoot this, run the following command:

ssh -vvv -i <path to private key> opc@<ip address of instance>

If this is the cause, you'll likely see something similar to the following as the output:

ssh -vvv -i .ssh/keyfile opc@10.22.33.44
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/Brad/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.22.33.44 port 22.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!