Connect or Reconnect to an Ec2 instance by Ssh

Aws is a cloud entreprise that provides many great services among them i love and use ec2 to various task jumping from generating ssl to bot hosting.

Connect to an ec2 instance by Ssh is simple just open a terminal in windows or your os.

ssh -i "yourkey.pem"
for me
ssh -i "agecetweb.pem"

Note that the ip address will change everytime you shutdown your ec2 instance
eg if you would like to reconnect to your ec2 instance with this same command
it will not work just change that ip to the new one.