guides
Disable Password Login — SSH Key Authentication Only
The final security step for SSH: disabling password authentication entirely so only key holders can connect. How to do it safely, why it matters, and what to do the one or two times you lock yourself out anyway.
Read →