1. Update packages
sudo yum update # Or sudo apt-get update
2. Install mlocate
sudo yum install mlocate # Or sudo apt-get install mlocate
3. Update mlocate
updatedb
Usage:
locate file_name






Select your instance and copy the value specified next to “Public DNS”.
From Amazon EC2 console, select “Security Group”.
Highlight the security group your instance is associated with.
Click on “Inbound” tab and then “EDIT”.
Select Type “SSH”, and under Source select “My IP”.
Save.
For instruction on how to do that refer to How to convert private key of format .pem to PuTTY .ppk.
In the Host Name box, enter user_name@public_dns_name. To find out the appropriate user name refer to Amazon instance user names.
Under Connection type, select SSH.
Ensure that Port is set to 22.
Click “Browse” and select the .ppk file that you generated for your key pair and click “Open”.
Click “Open” to start the PuTTY session.
Click “Yes” to dismiss warning.
You should now be connected to your instance.
Otherwise, if ec2-user and root don’t work, check with the AMI provider.