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

Troubleshooting Unable to ssh Into an OCI instance

Announcement
7
Views
0
Comments
edited Jun 28, 2022 1:27PM 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> [email protected]<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 [email protected]
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!