Below are step for connection :
Step 1: open ec2 -> Run or start instance
Step 2: Select instatnce and connect above connect option.
Step3 : Select SSH client and copy Example below copy ssh.-i.......
Step4: Open the folder where key pair pam key is available.
Step5 : Right click on outside and open the terminal option
Step6:Open the terminal
paste the url of ssh - i and enter.
Step7:Ask for Yes
Enter yes and then again enter
Done now on local window machine