Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Get Started with Redwood: Oracle Cloud SCM and Purchasing
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.
Solution
- Make sure ssh is allowed in the security list:
https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securitylists.htm?Highlight=security%20l
Tagged:
0