Password Protecting Directories With .htaccess
1 2 AuthUserFile (your path here)/.htpasswd 3 AuthGroupFile /dev/null 4 AuthName hold 5 AuthType Basic 6 <Limit GET> 7 require valid-user 8 </Limit>
Then su to same directory with SSH and:
1 2 root> htpasswd -c .htpasswd (username)
At the prompts, enter and reenter the password. Done.