DevOps Classroomnotes 04/Oct/2023

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_config and change it to yes
    • Restart sshd sudo systemctl restart sshd
  • 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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency
Exit mobile version
%%footer%%