
Learn linux fundamentals for cloud and devops with hands-on AWS-centered modules covering EC2, EBS, AMI, elastic IP, and keys, plus systemd, SSH access, troubleshooting, and AWS system manager.
Create AWS account, complete the sign-up steps, and explore AWS services within a free tier. Learn to launch a Linux EC2 instance and connect with MobaXterm, Putty, or Git Bash.
Connect to an ec2 instance using Mobaxterm, ssh with a pem key as ec2-user. Then elevate with sudo -i and ensure the security group allows ssh inbound on port 22.
Learn to connect to an EC2 instance using PuTTY, including the public IP and default EC2-user, and convert the pem to ppk with PuTTYgen to configure PuTTY.
Learn how to install and launch Gitbash on Windows, locate your pem file, and connect to a running EC2 instance using ssh -i user@public-ip, with options like Mobaxterm and putty.
Launch an Ubuntu 20.04 EC2 instance in the AWS console and configure SSH with the devopsnew key pair, then log in as Ubuntu with private key permissions set to 400.
Use filters to find and manage cloud instances by state, environment, or termination status, quickly identifying running, stopped, production, or development servers.
Learn to connect to an EC2 instance using a username and password by enabling password authentication, setting a root password, and restarting the ssh service.
Learn how private keys (.pem) and public keys authenticate SSH login to an EC2 instance, with the private key kept securely and public key in authorized_keys.
Enable passwordless SSH between an Amazon Linux web server and an Ubuntu server by generating RSA keys, copying the public key to root's authorized_keys, and configuring proper permissions.
Create a devops user on both Amazon Linux and Ubuntu, then enable passwordless ssh between them by adding public keys to authorized_keys and setting proper .ssh permissions.
Set up a new Ubuntu user with a home directory, create and configure the .ssh directory and authorized_keys, and log in as DevOps to establish passwordless ssh authentication.
Configure passwordless ssh between Amazon Linux and Ubuntu servers using rsa keys. Generate private and public keys, copy the public key to authorized_keys, and test access from the devops user.
Generate rsa private and public keys with ssh-keygen, copy the public key to Amazon Linux authorized_keys for the devops user, and enable passwordless ssh from Ubuntu to Amazon Linux.
Explore the Linux file hierarchy structure and the filesystem hierarchy standard, from the root directory to /bin, /etc, /home, /usr, /var, /boot, and /dev, with root user access.
Explore the linux file hierarchy, from /lib and /bin to /sbin and /usr, including /opt for add-on apps and /proc as a virtual filesystem for process info.
Explore basic Linux commands by copying and moving files, preserving permissions with -p, renaming with mv, and recursively copying directories, using ls -ltr and cat to verify contents.
Create and manage users with useradd, assign uids and groups, set comments and shells, and review /etc/passwd, /etc/shadow, and home directories to understand passwords and aging.
Create groups and users on Linux systems with groupadd and useradd, as root, assigning a primary and supplementary group, and setting home directories, uids, shells, and passwords.
Create a user with a primary group and a supplementary group using useradd and the -G flag, then verify with id and learn to lock and unlock with passwd.
Learn to modify Linux user accounts with the usermod command, including appending comments, changing home directories, setting primary groups, locking and unlocking accounts, and switching shells.
Explore the /etc/shadow file, where encrypted password data and password aging policies are stored. Learn how fields, password changes, minimum and maximum days, warnings, inactive and expire affect user accounts.
Explore the initialization files in a user's home directory, including .bash_profile, .bashrc, and .bash_logout, and system-wide /etc/profile. Learn how login shells versus interactive non-login shells determine which file runs.
Create a user named jay, log in, and watch how initialization files run during login to set and export the path via .bash_profile and .bashrc.
Learn how .bash_profile and .bashrc control login and interactive non-login shells and how to set PATH to run scripts from any location using a practical path lookup example.
Discover how linux permissions govern access to files and directories by owner, group, and others, with read, write, and execute permissions and examples using ls -l.
Learn to read Linux file attributes with ls -l, where the first dash marks a file and D marks a directory, and interpret owner, group, and others permissions (read/write).
Explore how to change file or directory permissions using chmod in absolute (numeric) and symbolic modes, including numeric codes, symbolic representations, and operators for user, group, and others.
Log into an Amazon Linux server, create users and groups, assign group membership, switch users, and manage file and directory permissions with chmod.
Explore Linux group management and file permissions in a hands-on lab on Amazon Linux, creating a Linux group, assigning users, and using chmod to control access.
Practice linux permissions by creating and running a bash script, and use chmod to grant read, write, and execute rights for user, group, and others.
Create a directory named oradb, view its owner, group, and permissions with ls -ltr, and set 755 to grant read and execute access for others.
Learn to change file and directory ownership with the chown command, including switching owner and primary group as root, and applying recursive changes with the -R option.
Practice symbolic mode with chmod to change file and directory permissions using plus minus and equal operators for user, group, and others, and learn to add, remove, or overwrite permissions.
Explains vCPU limit exceeded during instance launches, showing a 32 vCPU cap per account for t2.micro, how to request a limit adjustment, and a 31-versus-32 instance test.
Identify AWS instance launch issues, including region limits, insufficient capacity, and immediate termination causes, and apply resolutions like increasing per-region limits and diagnosing with state-transition reasons.
Troubleshoot common ssh login issues across jump, oradb, and application servers by fixing private key permissions with chmod 400, using the correct Ubuntu or ec2-user, and adjusting inbound rules.
Learn to launch and configure an ec2 instance in the aws console, selecting region, ami, instance type, vpc, public ip, security groups, storage, and key pair.
Create and download a key pair to access your AWS instance. The private key enables SSH for Linux AMIs, while Windows requires the private key to obtain the login password.
Connect to your instances using putty and ssh -i with a private key. Generate a ppk from your key and access from Windows or Linux servers.
Launch two Linux instances, reuse a security group and an existing key pair, then ssh from webserver to webserver1 using the .pem key and the EC2 user to verify IPs.
Enable termination protection to guard against accidental termination, since it is off by default. Terminating an instance deletes its root EBS volume by default.
Learn how termination protection affects EC2 shutdown behavior by enabling protection on two instances; one stops while the other terminates when shut down from the OS, with exam-style question.
Learn how security groups act as firewalls for inbound and outbound traffic. Create and attach them to EC2 instances, define inbound rules like ssh and http, and apply changes immediately.
Learn how Amazon EBS provides persistent block storage for EC2 instances, enabling root and additional volumes for OS or databases, with gp2, io1, st1, sc1, and magnetic standard types.
practice managing ebs volumes by attaching root and additional disks to instances, observe volumes in availability zone, then modify size and types (gp2, st1, magnetic) and note deletion behavior.
Learn to create, attach, format, and mount EBS volumes, take and restore snapshots for backup and recovery, and even change volume types across availability zones.
Explore the difference between snapshots and AMIs, how snapshots back up volumes stored in S3 with incremental backups, and how AMIs boot new servers.
Encrypt your root volume by copying an encrypted snapshot to build an encrypted AMI and launch instances with encrypted root, a capability now available at installation time.
Back up an EC2 instance by snapshotting the root volume (/dev/sda1) in its availability zone, then restore by creating a volume from the snapshot, attach it, and start the instance.
Identify the root volume (the os disk) and its instance id, then use the modify volume action to increase the linux root disk from 10 gb to 15 gb.
Learn to view EC2 instance metadata from the command line using curl, retrieving details such as instance id, instance type, public and private IPs, DNS, security groups, and keys.
Explore managing services on a RHL 8 box with systemctl, including status, start, stop, enable, and disable, and examine unit files in /usr/lib/systemd/system for sshd and rsyslog.
Learn how systemd targets replace runlevels, booting into graphical or multi-user modes, and use systemctl to inspect dependencies and units.
Discover how to manage services with systemctl by distinguishing restart from reload, observing pid changes, and reloading configurations without downtime. Learn masking and unmasking to prevent service conflicts.
Explore how systemd replaces sysvinit and speeds boot times with parallel tasks. Learn to navigate unit configurations and use journal ctl to view logs and boot events.
Explore AWS Systems Manager, a unified interface to view and automate tasks. Patch Windows and Linux, inventory software, and group resources like EC2, S3, and RDS for security and compliance.
Install the AWS Systems Manager (SSM) agent on all EC2 and on-premises servers to enable communication with Systems Manager, with pre-installed options on certain AMIs and manual installs for others.
Configure two Amazon Linux 2 EC2 instances with SSM agent, attach an SSM EC2 role, and view them as managed instances in Systems Manager.
Learn to define and apply AWS tags with key and value pairs, and create tag-based resource groups to manage instances by environment and department.
Learn to use AWS Systems Manager Run Command to remotely manage instances, install software, run scripts, and capture logs with SSM documents.
Learn to create and run AWS Systems Manager documents in EC2 to configure Apache on Linux, using run shell script, Patch Manager, and CloudWatch outputs.
Learn how AWS Systems Manager Inventory provides visibility into your EC2 and on premises computing environment, showing installed software and patches on managed instances.
Configure patch manager using predefined baselines to patch webserver1 manually, with optional scheduling, and verify Linux and Windows patching steps against the Amazon Linux 2 default baseline.
Create a custom patch baseline for Amazon Linux 2 with critical patches auto approved immediately and bug fix patches auto approved after 14 days, and set it as default.
Tag web server 2 with batch group amazon linux, attach it to a custom amazon linux patch baseline, and configure patching to install security patches.
Master AWS Systems Manager Session Manager to securely access EC2, on-prem, and VMs via browser or CLI, using IAM controls and CloudWatch logging, no inbound ports or SSH keys.
Discover how AWS Systems Manager parameter store provides secure, hierarchical storage for configuration data and secrets, enabling encrypted passwords and values to be retrieved in scripts and run commands.
Create a parameter store entry to securely hold Sverma's Windows password, then run an SSM script to retrieve the password and reset Sverma's account, verifying login.
Learn to create and retrieve parameter store entries using AWS SSM put parameter and AWS SSM get parameter, including a string parameter and a secure string with decryption.
Showcases resetting the Windows administrator password on an AWS EC2 instance using AWS Systems Manager and EC2 Rescue for Windows, then retrieving the new password from parameter store.
Reach the last lecture of this course module and apply what you learned. Share doubts or suggestions via the question-answer form or ping the instructor.
Linux for Cloud & DevOps Engineers
Introduction
Create an AWS Account
Create an EC2 Instance - Amazon Linux
Create a key pair - Public & Private Key
MobaXterm - Connect EC2 Instance
Putty - Connect EC2 Instance
Gitbash - Connect to EC2 Instance
Create an EC2 Instance - Ubuntu
Filter Instances
Access Instance using User Name & Password (Without using Private key)
More about private & public key
Passwordless authentication from Linux to Ubuntu Server
Lab - Access the Amazon Linux Instance other than the default user
Lab - Access the Ubuntu Linux Instance other than the default user
Lab - Passwordless Authentication between Amazon Linux & Ubuntu and Vice versa
Linux Filesystem Structure & Basic commands
Linux File Hierarchy Structure
Basic Linux Commands Practice
pwd, touch, vi/vim/nano cp mv mkdir, etc
User Administration
Overview of User Administration
Lab - Managing User Account
Lab - User & Group Creation
Lab - Primary & Supplementary group
Lab - Usermod Command
Understanding the Shadow file
User’s Home Directory In Linux
Overview of .bash_profile, .bashrc & .bash_logout
Lab - Initialization file
Lab - Set PATH in .bash_profile file
Lab - Set Aliases & Login prompt PS1
Permissions in Linux
Overview of Permissions in Linux
File & Directory Attributes
Access Modes ( Absolute & Symbolic Mode)
Change Ownership
Scenario-based Lab Sessions
Lab - Permit access to a file/directory for a group
Lab - Permit access to a file/directory for a others
Lab - Change the ownership or a file/directory
Troubleshooting Instance launch Issues
VcpuLimitExceeded Error
InstanceLimitExceeded Error
Insufficient Instance Capacity
Instance terminates immediately
Common SSH Login Issues
EC2 - Elastic Compute Cloud
Overview of EC2 Service
Deploy an EC2 Instance Lab
Create a key pair to access the Instance
Connect to an Instance via putty
Connect to an Instance from Linux Server
Enable Termination Protection
EC2 Shutdown Behavior
Overview of Security Groups
EBS & Volume types
Lab Session on EBS
EBS Volume & Snapshot
Amazon Machine Image (AMI)
Lab Session on AMI & SnapShot
Encrypted Root Volume
Elastic IP
EC2 Instance backup and restore
Increase the Size of a Root Volume
EC2 Instance Metadata
EC2 Instance Userdata
Systemd - System and Service Manager
Introduction to Systemd, Systemd units
Lab on systemctl command and journal
Bonus AWS Systems Manager
AWS Systems Manager Overview
AWS Systems Manager Agent (SSM Agent)
Configure EC2 Instances with SSM Agent & Role
AWS Tags & Resouce Groups
AWS Systems Manager Run Command
AWS Systems Manager Documents
AWS Systems Manager Inventory
Configure Patch Manager using predefined baselines
Create a Custom patch baseline (Critical & Medium patches by severities)
Configure patch manager using a custom patch baseline (Linux)
Last Lecture