Generate the Public/Private key files
Now we will create the public and private key files for centos user
1. su centos
2. cd ~/
3. ssh-keygen -b 1024 -f centos -t dsa
4. cat centos.pub >> .ssh/authorized_keys
5. chmod 600 .ssh/authorized_keys
6. Open vi centos under /home/centos

8. Copy the content vi centos

- Now make a file with the name centos.pem
- Now, you can access the server by using command :
- ssh –i centos.pem centos@IpAddressOfServer