Amazon EC2 Instance Connect provides a secure way to connect to instances using Secure Shell (SSH). You use AWS Identity and Access Management (IAM) policies and principals to control SSH access to instances, removing the need to share and manage SSH keys. All connection requests using EC2 Instance Connect are logged to AWS CloudTrail to enable auditing of connection requests.
See: Connecting to Your Linux Instance Using EC2 Instance Connect