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