Ansible Contd
Authentication in Linux or Credentials
- Linux uses SSH (Secure Shell) for connecting to other instances
- There are two types of credentials
- username and password
- username and key pair
Lab Setup
- Overview

- We will create a user called as devops on server 1 and server 2
- Enable password based authentication
- Try to login from server 1 to server 2 using devops user
Solution
- Enable password based authentication
- check the value of PasswordAuthentication in file
/etc/ssh/sshd_configand change it to yes - Restart sshd
sudo systemctl restart sshd
- check the value of PasswordAuthentication in file
- Create a user called as
devops
sudo adduser devops
- Now repeat the above steps on server 2
- Now from server 1 connect to server2
ssh devops@<server2-ip>
Exercises
- Login into linux vms from your laptop
- establish ssh between two vms in cloud
- changing file permissions
- using sftp and ssh
- Learn using vim Refer Here or nano editor
- Release cycle of ubuntu and Release cycle of Redhat
