In AWS environment, we usually have two ip address, public one and private one. When we login on to the host, we use public ip, and we edit hosts file, we use private ip, is it right? What is the best practice of this? hostname;    private ip;   public ip;host1        192.168.1.2   202.118.2.117host2        192.168.1.3   202.118.2.118host3        192.168.1.4   202.118.2.119host4        192.168.1.5   202.118.2.120host5        192.168.1.6   202.118.2.121What is the best practice? 
What ip address shall I use? public IP or private ip?
ip;aws