Thursday, June 2, 2016

What I learned Today " Password less login for your servers "

Hi all ,

Even though some of the servers are  compromised using passwords , So to avoid those kind of issues we have to setup Password less login to ensure high safety and security to our servers.

Steps : Create SSH keys to your user id in your server , use bellow commands to create SSH keys ,

cd ~/.ssh
ssh-keygen -t dsa -b 1024
 
Create an PEM key from an gerenated PRIVATEKEY
 
openssl dsa -in id_dsa -outform pem > test.pem 
 
Copy generated Public key to Authorized_keys file,
 
cat id_dsa.pub >> authorized_keys
 
That's it we are done with the key generation. We have to do is to copy that pem key to 
local machine and log in to  that server with this pem key.


ssh -i "test.pem" username@servername 

That's it we are good to gooooo.....!!!!!

 
 

Task --> you need to create redis dbs, either single or multiple based on hiera data using puppet

Hi all, I know there is no post in past few weeks, sorry i was struck with my family issues and i got married recently . so come to our i...