I'm trying to move my server from linode to EC2 and am following the guide located here - http://library.linode.com/getting-started/
One problem I have is when I set my hostname to my public DNS:
echo "ec2-46-51-***-**" > /etc/hostname
And add to my elastic ip and public DNS to /etc/hosts:
46.51.***.*** c2-46-51-131-72.eu-west-1.compute.amazonaws.com c2-46-51-131-72
I can no longer log on. Should I be using internal IP and private dns names?