From the course: Complete Guide to AWS Software Deployment
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Understanding SSH key authentication - Amazon Web Services (AWS) Tutorial
From the course: Complete Guide to AWS Software Deployment
Understanding SSH key authentication
- [Narrator] When working with EC2 instances, it helps to understand how to connect with SSH key authentication. For the longest time, your only option for logging into an EC2 instance was via SSH. In the next chapter, I'll show you a new and possibly more convenient option using AWS Systems Manager. But for now, let's delve into this useful topic. What's typically required when you want to log into a remote Linux server, like a new Amazon and Linux EC2 instance? Port 22 must be accessible from your location. The host must have SSHD processes running. You must have a username and password and password authentication must be enabled. The client logs in with some SSH client software, such as the Mac's built-in SSH command or PuTTY for Windows. The default situation in AWS is a little different. First, AWS instances automatically provision an admin level user for you. On Amazon Linux, this user is called EC2 User. Run two instances, just use root. Check the AWS documentation for your OS…