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 *

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.