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"
in Linux
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
Tagged:
0