Day 7: Secure SSH With Key-Based Login and Resize EC2 Instances on AWS
A developer's Day 7 challenge on the KodeKloud Engineer platform covered two foundational DevOps tasks: setting up passwordless SSH authentication and resizing an AWS EC2 instance. Key-based SSH login was configured using an ed25519 key pair, with the public key pushed to the server via ssh-copy-id to ensure correct file permissions. Crucially, password authentication was then disabled in the SSH daemon config to eliminate the risk of brute-force attacks. On the AWS side, changing an EC2 instance type requires the instance to be fully stopped first, since the type is tied to the underlying physical host. The walkthrough emphasized verifying key login in a separate terminal before disabling passwords, and using the AWS CLI wait command to confirm the instance had stopped before modifying it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in