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
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: SSH Connection Fails with "Remote side unexpectedly closed network connection"

Applies To:

Oracle Cloud Infrastructure
Linux x86-64

Symptoms:

The ssh session fails after entering the username. The authentication process waits for few seconds and then terminates. The SSH works fine with password authentication, but fails with SSH keys.

login as: opc
Authenticating with public key "imported-openssh-key
...waits
Remote side unexpectedly closed network connection

Cause:

During the login attempt, the following errors are reported in the /var/log/secure. The instance needs to be booted into rescue mode to be able to view the logs in case of no password authentication is enabled (i.e. no way of logging into the instance).

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!