Posts for Web Server Category
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 the server. OS used is CentOS 7 64bit.

Note: Change the trb name to your own key name.

1- Cd to the dir for which server/domain you want to create the keys, remember it’s on your local machine:

cd /backup/therandombits.com/keys/

2- Create the keys, this will create public and private keys. Enter the name(trb in my case) when asked. I skipped the passphrase.

ssh-keygen -t rsa -b 2048

3- Let’s keep the private key as it...

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...

×