Note: replace {{server}} with your domain or ip Login as the ec2-user ssh -i key.pem ec2-user@{{server}} Switch to administrator sudo -i