OCI: Password Authentication on Ubuntu Throws Error: No supported authentication methods available
in Linux
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.
Tagged:
1