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 ReplyCancel reply

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

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%