Can both password authentication and an SSH key be used on the same account at Digital Ocean?

August 3, 2018 187 views
DigitalOcean Ubuntu 16.04

We have a user who has an issue using an SSH key and would prefer to keep using a username and password to log in.

1 Answer
jarland MOD August 6, 2018
Accepted Answer

Hello friend!

Absolutely. You will need to make sure that "AllowRootLogin" is set to yes in /etc/ssh/sshd_config, then restart the SSH service if you had to change that. Be sure to work hard on that password, as merely existing with SSH accessible means as many as thousands of attempted logins by attackers every hour.

Kind Regards,
Jarland

Have another answer? Share your knowledge.