EC2 Command Line Access
There are several ways to connect to EC2 instances...
ssh tunnel via a Bastion Host
ssh direct to EC2 instance (only if the instance has a public IP address)
aws cli (limited functionality)
aws API (limited functionality)
EC2 Instance Connect (only if the instance has a public IPv4 address)
Session Manager
Session Manager
Session Manager
This assumes the amazon-ssm-agent service is running.
By default it should be. You will get an error on the console page if the agent is not running.Login to an ssh session via another method (e.g. ssh tunnel)....
ec2-user is fine (or any other account with the ability to sudo)sudo systemctl status amazon-ssm-agent
If the agent shows as 'dead' you can restart with...
sudo systemctl restart amazon-ssm-agent
Initial Setup
Initial Setup
Open Systems Manager Quick Setup
Choose options as required. To just enable SSM, the only tickbox you should need to select is shown in the screenshot....
NOT TESTED SUCCESSFULLY YET
SSH client
SSH client
Bibliography
Bibliography