In order to connect Amazon Linux servers we have to use putty from our windows computer. But as other servers amazon will not allow connect with username and password through putty. We have to use the private and public key pair.
During the installation of the server it will ask for generate the key pairs, if there is no key available in that particular region. In a region only one pair of key is enough for many servers. the public key pair we can down load to our local computer during generating the key.
We can generate new key at any time. For generating key we have to go for ec2 dash board–network and security–key pairs, then click on create key par and give name for the key and click generate and down load.