I have build an AMI in aws using
Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-0d77397e
Now I might be mis-understanding this, but I don't want to use a keypair as we are sharing this ami around a team. It is in a security group that is locked down to our IP's, so i just want to be able to log in using user/pass
When I try to connect I get the username prompt which I enter the user name Ubuntu in on pressing enter I get this prompt:
Disconnected: No supported authentication methods available (server sent: publickey)
Instead of sharing keys you can create unix users like 1) sudo adduser username -- It will ask you enter password and other details 2) Edit /etc/ssh/sshd_config setting PasswordAuthentication yes 3) Restart the ssh daemon with sudo service ssh restart
Now log back in by saying ssh username@ec2_ip and enter the password you just created in 1.