The default user for Amazon Linux 2 is ec2-user, first, we need to create a password for the ec2-user [ec2-user@ip-164 ]$ sudo passwd ec2-user Changing password for user ec2-user. New password: Retype new password: passwd: all authentication tokens updated successfully. Then enable the password authentication for the Login in the SSHD config file sudo nano /etc/ssh/sshd_config Find the PasswordAuthentication no and set it to yes Restart the SSHD Service sudo systemctl restart sshd
In this blog i am writing the steps on installing and using the Ansible on Windows 10 Subsystem for Linux First Enable the “Developer mode” and “Windows Subsystem for Linux”, after reboot open bash Installing Ansible Open bash prompt (by running bash in run )Install Python PIPsudo apt-get -y install python-pip python-dev libffi-dev libssl-devInstall Ansible by running pip install ansible –user–user installs package local to the user account instead of global to avoid permission issues with PIP and SubsystemAdd the path echo ‘PATH=$HOME/.local/bin:$PATH’ >> ~/.bashrcRun source ~/.bashrc to update the path Verify Ansible Installation ansible –version
For Amazon Linux 2 or the Amazon Linux AMI, the username is ec2-user.For a Centos AMI, the username is centos.For a Debian AMI, the username is admin or root.For a Fedora AMI, the username is ec2-user or fedora.For an RHEL AMI, the username is ec2-user or root.For a SUSE AMI, the username is ec2-user or root.For an Ubuntu AMI, the username is ubuntu.