How to disable password authentication in ubuntu

Written by mike heldar
  • Share
  • Tweet
  • Share
  • Email

Ubuntu Linux is an edition of the Linux operating system. It makes use of passwords to authenticate user logon 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.

Skill level:
Moderately Easy


  1. 1

    Log into Ubuntu and click "Applications," "Accessories," then "Terminal."

  2. 2

    Type "sudo nano /etc/sshd_config" without quotation marks. Enter your administrative login password when prompted.

  3. 3

    Press "Ctrl+W" on the keyboard to open a "Search" window. Type "PasswordAuthentication" and press "Enter."

  4. 4

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

    PasswordAuthentication no

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.