Posts for Web Server Category
Authentication via PEM file without root user

Authentication via PEM file without root user

A year or so ago i wrote how to create PEM file and login to your server with it to take advantage of disabling password based logins.

Today i am taking it a step further and disabling root user to login at all. For this we need to create new user. Also i hope you have your root password somewhere safe. It will be used only for doing root stuff after login to the server when needed. This user we add will have basic privileges. Because i want to make sure we have another step...

Create PEM file for your Linux server

Create PEM file for your Linux server

Objective: To disable password based logins and login only using key based authentication. Will create a pem file which will be used to access...

Deny executing a script in Nginx

Deny executing a script in Nginx

If you have a web server running on Nginx and have a directory which accepts uploading files either from user OR cms. It is...

×