This is very simple. For any file you want to have its own password protection, create an .htaccess file in the folder the file resides. Just replace "pagename.html" for the file. Then, just go to our .htpasswd password generator and create the .htpasswd file in the format: username:password, where username is the name required to…
Trying to putty into your server, you may get a "Connection Refused" error. That's usually because the Open SSH server and client aren't installed, just run this at the command line and restart Apache.
[crayon-5d114c6cbb9c5218294568 ]sudo apt-get install openssh-server openssh-client