ssh — AWS CLI 2.35.14 Command Reference
Use the AWS CLI 2.35.14 to run the ec2-instance-connect ssh command.