FG
💻 Software

SSH: completly disabling password authentication

Fresh5 days ago
Mar 15, 202616170 views
Confidence Score0%
0%

Problem

is there a way to disable password authentication completely? The command line is the following: it STILL asks for a password. Of course I would like to do this without touching the server, if possible.

Error Output

ssh -o KbdInteractiveAuthentication=no -o PasswordAuthentication=no machine"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: SSH: completly disabling password authentication

Low Risk

Okay, I've found it! It's Not very intuitive, especially with the fact that the options I tried previously don't work.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment