Less password ssh setup in AWS EC2 instances

Enable Authentication on instances for sshd service
sudo vim /etc/ssh/sshd_config
Change
PasswordAuthentication yes
Set Unix password
sudo passwd ubuntu
Restart ssh and sshd service
service ssh restart
service sshd restart