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: Linux Instance Login Fails with "Network error: Connection refused"

Applies to:

Oracle Linux Server release 7/8

Symptoms:

While attempting to log in to the Linux instance results in the following error:

Network error: Connection refused


Cause:

The following line in /etc/ssh/sshd_config caused the sshd service to fail during startup.

$ grep -i PubkeyAcceptedAlgorithms /etc/ssh/sshd_config
PubkeyAcceptedAlgorithms +ssh-rsa

Solution:

Connnect to the console of the instance by following this link
https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm


Validate the /var/log/messages to identify the reason for sshd service startup.



May 7 12:17:14 hostname sshd[1790]: /etc/ssh/sshd_config: line 72: Bad configuration option: PubkeyAcceptedAlgorithms

Disable the line in the file

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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