Skip to main content

Posts

Showing posts from January, 2020

password login instead of a key pair in aws ec2 instance

How do I enable a password login instead of a key pair when logging into my EC2 instance using SSH? Last updated: 2019-09-17 I want to log in to my Amazon Elastic Compute Cloud (Amazon EC2) instance by SSH with a password rather than by using a key pair file (.pem). How do I do that?  Short Description To enable a password authentication, you create a password, update the /etc/ssh/sshd_config file, and then restart the SSH service. The following procedure is tested on Amazon Linux, RHEL, SUSE, and Ubuntu. Note:  Using a password-based login rather than key pair authentication has security implications. Therefore, password-based login isn't recommended. Also, it's a best practice to minimize the source IP addresses of the security group rules associated with your instance to prevent an SSH attack. Resolution 1.    From an SSH client, log in to your EC2 instance. Use one of the following user names: For Amazon Linux, the user name is...