Following are the steps to connect to an instance using ssh.
1. Generate a ppk file from the pem file.
2. Login to the instance with ppk file using Putty- Enter the instance endpoint, username and add ppk file in the auth section
3. You will be logged into the instance. Now SSH would work.