Troubleshooting Unable to ssh Into an OCI instance
There are a lot of potential causes for not being able to ssh in to an instance. The most common are outlined here.
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.