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" ubuntu@ec2-your-ip.eu-west-3.compute.amazonaws.com
for me
ssh -i "agecetweb.pem" ubuntu@ec2-35-181-46-65.eu-west-3.compute.amazonaws.com

Note that the ip address 35.186.43.65 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.