There many nuanced differences between these services but the basic idea is that EC2 Instance Connect allows for a convenient and secure native SSH connection using short-lived keys while Session Manager permits an SSH connection tunneled over a proxy connection.
The session manager agent establishes a reverse connection to the service so it is not necessary to, for example, open port 22 on the host. EC2 Instance Connect requires the host security group to permit ssh traffic inbound.
A few other things of note: EC2 Instance Connect supports only Linux EC2 hosts while Session Manager supports Windows and Linux hosts both EC2 Instances and On-prem.
Hope that helps.
The simple answer to this is that after deploying your EC2 instance you want to connect to it ans use it the same way you would use a computer in front of you. Now coming down to the question. 1.)SSH connect -It basically allows you to control a remote machine , all using the command line
- you can configure all the required parameters necessary for doing SSH using the free tool putty
2.) EC2 Instance connect
- Connect to EC2 instance within your browser
- No need to use the key file that you have downloaded
- The best part is that the temporary key is uploaded onto EC2 instance by AWS
Hope that helps!
What is the difference between EC2 Instance Connect and Session Manager SSH connections?Accepted Answerasked 3 years ago
trying to ssh into an ec2 instanceasked 3 months ago
Unable to SSH into my EC2 Instance Permission denied (publickey)asked 3 years ago
How can I use Azure AD credentials for SSH into AWS EC2 Instance?Accepted Answerasked 5 months ago
SSH key managment for many usersAccepted Answerasked 3 months ago
Can I SSH into my container running on AppRunner?asked 4 months ago
EC2: Error establishing SSH connection to your instance. Please wait and try again later.asked 10 days ago
SSH into EC2 stops accepting connections after about 8 minutesAccepted Answerasked 7 months ago
Unable to SSH to the ubuntu managed node using instance-idAccepted Answerasked a month ago
Cannot SSH into EC2 InstanceAccepted Answerasked 7 months ago