Enable Password Based Login to OCI IaaS Image

Sometimes you need to login by password. I recommend you keep this to images on private subnets. Here is how you do it.

Edit /etc/ssh/sshd_config, change

PasswordAuthentication no


PasswordAuthentication yes

Then restart ssh service:

# systemctl restart sshd

Then change the password of the user you will access by password.

# passwd myusername

Leave a Reply

Your email address will not be published. Required fields are marked *