Troubleshooting Unable to ssh Into an OCI instance
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.
Tagged:
0