x

How to Disable Password Authentication in Ubuntu

by Mike Heldar

Ubuntu Linux makes use of passwords to authenticate user log-on requests in its default configuration. If your system is of a lower security priority and you believe that password information is unnecessary, you can disable password authentication to enable blank login requests from all users who access the proper username on the system.

Step 1

Log into Ubuntu and open your Terminal program.

Step 2

Type "sudo nano /etc/sshd_config" (without quotation marks here and throughout) and enter your administrative login password when prompted.

Step 3

Press "Ctrl+W" to open a search window; type in "PasswordAuthentication" and press "Enter."

Step 4

Remove the "#" sign at the start of the PasswordAuthentication label, then replace "Yes" with "No" so that the line reads: PasswordAuthentication no

Save the file and restart the server.

Video of the Day

Brought to you by Techwalla
Brought to you by Techwalla

More Articles