OCI: SSH to Instance Failed at "Connection refused"
Applies to:
Oracle Cloud Infrastructure
Linux x86_64
SYMPTOMS
When ssh to an instance, it fails with "Connection refused" as follows:
OpenSSH_7.1p2, OpenSSL 1.0.1g 7 Apr 2014 debug1: Reading configuration data /etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to ****.****.****.**** [****.****.****.****] port 22. debug1: connect to address ****.****.****.**** port 22: Connection refused ssh: connect to host ****.****.****.**** port 22: Connection refused
CAUSE
There are many reasons for the error like sshd service is not running or sshd wrong configuration or sshd permission issue etc,
so you have to check them step by step.
Tagged:
0