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