How to Enable Password Authentication in AWS ec2 Instances

ssh -i your-key.pem username@ip_address
sudo passwd ec2-user
sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes
sudo service sshd restart
ssh ec2-user@ip_address 
// ssh ec2-user@15.1.25.40

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store