Written by alok-38
π 1. SSH & Remote Access ssh -i DevOps.pem ec2-user@ec2-x-x-x-x.compute-1.amazonaws.com Purpose: Connect securely to an EC2 instance. ssh β Secure Shell i DevOps.pem β Use this private key for authentication ec2-user@host β Login user + EC2 hostname π This is how you manually access EC2. ssh user@host "command" Purpose: Run a command on EC2 without logging in interactively. Used in GitHub Actions to: Verify connection Create directories Reload Nginx Example: s...