Skip to content

Error with EC2 Password Authentication

0

Question: How can I enable SSH login with a password instead of a private key (.pem) on my EC2 instance?

Details:

  1. I followed the instructions to modify the '/etc/ssh/sshd_config' file and changed: Before: PasswordAuthentication no After: PasswordAuthentication yes

  2. Then, I restarted the sshd.service. However, I still get the following error when trying to log in with a password: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

asked 2 years ago623 views
2 Answers
3

I'm sorry for posting a question without looking up enough references. The answer below is the perfect solution to my problem. https://repost.aws/questions/QUMV_A4nMSShOUvMB2anTyBg/issues-enabling-password-authentication-and-root-login-on-amazon-ec2-instance

answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • Don't make your SSH service public with one a password. Even with key-base auth, don't leave SSH open to the internet, limit it to specific IPs.

0
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.