ssh -o PasswordAuthentication=no root@203.0.113.10

Category: VPS Management

ssh -o PasswordAuthentication=no root@203.0.113.10

Test that key-only SSH login works

Forces the client to attempt only key authentication: if your key is set up the login succeeds, and if the server would need a password the attempt fails fast instead of prompting. This is the safe pre-flight test before disabling password auth server-side. A successful exit means the server is ready for hardening.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.