- January 25, 2016
- M M Arif
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...