Htpasswd authentication failed

Hi Team,

Task was to create htpasswd file to restrict access to authorized user(s).

Steps Followed:

  1. As mentioned created sysops directory under /var/www/html.
  2. Created .htpasswd for user mariyan
    #sudo htpasswd -c /var/www/html/.htpasswd mariyan
  3. Creted .htaccess file
    #sudo vi .htaccess
    AuthName “Restricted Site”
    AuthType Basic
    AuthUserFile /var/www/html/.htpasswd
    Require valid-user

Please find the attached screnshot for reference.

After completion, task failed with message htpasswd authentication failed.

Please let me know what step went wrong.

Thank You.