You can password protect your WordPress site using something called HTTP Authentication. This is a standard method of password protecting a site on any web server. It’s simple but effective.
To do this:
After a while the screen will refresh – if the operation is successful. If the operation fails, you’ll get a popup message.
You can see a full log of the operation under the SSH LOG screen.