Articles → LINUX → Enable Password Authentication In The Linux System

Enable Password Authentication In The Linux System






Steps




  1. Login to the virtual machine using MobaXTerm.
  2. Switch to the admin mode using the following command
  3. sudo -i


  4. Go to the SSH folder using the following command.
  5. cd /etc/ssh


  6. Open the sshd_config file using the following command.
  7. vi sshd_config


  8. Open the file in insert mode by pressing the "i" key.
  9. Change the attribute value of "PasswordAuthentication" from "no" to "yes".
  10. Picture showing changing the value of  the PasswordAuthentication attribute from No to Yes in the sshd_config file
    Click to Enlarge

  11. Save the sshd_config file using the command below.
  12. SHIFT ESC
    :wq
    Press Enter


  13. Restart the service using the following command.
  14. service  sshd restart



Output


Picture showing the screen asking the user for password
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, November 17, 2020
 
Updated On  -  Tuesday, January 31, 2023

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250