Can I use password-based authentication instead of SSH keys with Cloudflare-protected servers?

Question

Grade: Education Subject: Support
Can I use password-based authentication instead of SSH keys with Cloudflare-protected servers?
Asked by:
94 Viewed 94 Answers

Answer (94)

Best Answer
(305)
While possible, it's highly discouraged. SSH keys are significantly more secure than passwords. Password-based authentication is vulnerable to brute-force attacks. For enhanced security, disable password authentication in your SSH server configuration (`/etc/ssh/sshd_config`) and rely solely on SSH keys.