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

OCI: Password Authentication on Ubuntu Throws Error: No supported authentication methods available

Applies To:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64 on Oracle Public Cloud

Symptoms:

On Ubuntu 20.04, if the parameter “PasswordAuthentication yes” is set in the /etc/ssh/sshd_config the connectivity to the server works fine with password.

However on Ubuntu 22.04 the same doesn't work and below error is reported when trying to ssh to the instance.

"No supported authentication methods available (sever sent: publickey)" 

Cause:

There is another file "/etc/ssh/sshd_config.d/60-cloudimg-settings" that comes with Ubuntu 22.04 and the values in this file overrides the configuration from /etc/ssh/sshd_config file.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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