Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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: Unable to SSH to Ubuntu Instance Using Password

APPLIES TO

Oracle Cloud Infrastructure - Version N/A and later
Linux OS – Ubuntu 22.04

SYMPTOMS:

Unable to ssh to the instance with password even after setting PasswordAuthentication to yes in the sshd configuration file /etc/ssh/sshd_config.

CAUSE:

Incorrect ssh configuration. The configuration file under /etc/ssh/sshd_config.d/ is having PasswordAuthentication set to no.

$ sudo cat /etc/ssh/sshd_config.d/disable_password.conf | grep PasswordAuthentication
PasswordAuthentication no

SOLUTION:

  1. Remove or comment the PasswordAuthentication no from the configuration file under /etc/ssh/sshd_config.d/.
  2. Make sure PasswordAuthentication yes is set in /etc/ssh/sshd_config.
  3. Restart the

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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